UIImage
public extension UIImage
-
Initialize UIImage with color and size
Declaration
Swift
convenience init?(color: UIColor, size: CGSize)Parameters
colorImage color
sizeImage size
-
Initialize UIImage from color
Declaration
Swift
convenience init?(color: UIColor)Parameters
colorImage color
-
Initialize Gradient UIImage with colors and size
Declaration
Swift
convenience init?(colors: [UIColor], size: CGSize)Parameters
colorsGradient Image colors
sizeImage size
View on GitHub
UIImage Extension Reference