RenderingModeImageModifier
public struct RenderingModeImageModifier : ImageModifier
Modifier for setting the rendering mode of images.
-
The rendering mode to apply to the image.
Declaration
Swift
public let renderingMode: UIImage.RenderingMode
-
Creates a
RenderingModeImageModifier
.Declaration
Swift
public init(renderingMode: UIImage.RenderingMode = .automatic)
Parameters
renderingMode
The rendering mode to apply to the image. Default is
.automatic
. -
Modify an input
Image
. SeeImageModifier
protocol for more.Declaration
Swift
public func modify(_ image: Image) -> Image