RenderingModeImageModifier
public struct RenderingModeImageModifier: ImageModifier
Modifier for setting the rendering mode of images. Only UI-based images are supported; if a non-UI image is passed in, the modifier will do nothing.
-
The rendering mode to apply to the image.
Declaration
Swift
public let renderingMode: UIImageRenderingMode -
Initialize a
RenderingModeImageModifierDeclaration
Swift
public init(renderingMode: UIImageRenderingMode = .automatic)Parameters
renderingModeThe rendering mode to apply to the image. Default is .automatic
-
Modify an input
Image.Note
See documentation of
ImageModifierprotocol for more.Declaration
Swift
public func modify(_ image: Image) -> ImageParameters
imageImage which will be modified by
selfReturn Value
The modified image.
View on GitHub
Install in Dash
RenderingModeImageModifier Structure Reference