Kingfisher Documentation

Structure Rendering​Mode​Image​Modifier

public struct RenderingModeImageModifier: ImageModifier  

Modifier for setting the rendering mode of images.

%273 RenderingModeImageModifier RenderingModeImageModifier ImageModifier ImageModifier RenderingModeImageModifier->ImageModifier

Conforms To

ImageModifier

An ImageModifier can be used to change properties on an image between cache serialization and the actual use of the image. The modify(_:) method will be called after the image retrieved from its source and before it returned to the caller. This modified image is expected to be only used for rendering purpose, any changes applied by the ImageModifier will not be serialized or cached.

Initializers

init(rendering​Mode:​)

public init(renderingMode: UIImage.RenderingMode = .automatic)  

Creates a RenderingModeImageModifier.

Parameters

rendering​Mode UIImage.​Rendering​Mode

The rendering mode to apply to the image. Default is .automatic.

Properties

rendering​Mode

public let renderingMode: UIImage.RenderingMode

The rendering mode to apply to the image.

Methods

modify(_:​)

public func modify(_ image: KFCrossPlatformImage) -> KFCrossPlatformImage  

Modify an input Image. See ImageModifier protocol for more.