AnyImageModifier
public struct AnyImageModifier: ImageModifier
A custom modifier. Can be initialized with a block to modify images in a custom way
-
Initialize an
AnyImageModifier
Declaration
Swift
public init(modify: @escaping (Image) -> Image)
-
Modifies an input
Image
using thisAnyImageModifier
‘sblock
.Note
See documentation of
ImageModifier
protocol for more.Declaration
Swift
public func modify(_ image: Image) -> Image
Parameters
image
Image which will be modified by
self
Return Value
The modified image.