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