IImageFactory
Methods
func make(pngData: Data, size: CGSize) -> Image
Creates an image based on PNG data.
Parameters
func make(svgData: Data, size: CGSize) -> Image
Creates an image based on SVG data.
Parameters
func make(lottieData: Data, size: CGSize) -> Image
Creates an animated image based on Lottie data.
Parameters
func make(image: UIImage) -> Image
Creates an image based on the UIImage object. The make(pngData:size:)
method works more efficiently with ready PNG data.
Parameters
func make(imageFactory: @escaping () -> UIImage) -> Image
Creates an image based on a deferred UIImage object. The passed closure is called with delay at the moment when data is needed. The make(pngData:size:)
method works more efficiently with ready PNG data.
Returns