UIImage
extension UIImage
-
Create a flat color image
Declaration
Swift
static func image(color: UIColor, size: CGSize) -> UIImage?Parameters
colorUIColor
sizeCGSize
Return Value
Image if created
-
Return a rounded copy
Declaration
Swift
func rounded(cornerRadius: Int) -> UIImage?Parameters
cornerRadiusPoint radius
Return Value
Image if created
View on GitHub
UIImage Extension Reference