UIImage
public extension UIImage
-
Colorized image
Declaration
Swift
func colorized(with color: UIColor?) -> UIImageParameters
colorThe color you want to change
Return Value
Colorized UIImage
-
Creates UIImage with grandiented colors
Declaration
Swift
class func gradiented(startColor: UIColor, endColor: UIColor, size: CGSize, horizontally: Bool = true) -> UIImage?Parameters
startColorStarting Color
endColorEnding Color
sizeSize of UIImage
horizontallyIf true horizontal gradient, otherwise would be vertical
Return Value
Created UIImage with gradient background color
-
Returns by adding withRenderingMode(.alwaysOriginal)
Declaration
Swift
func original() -> UIImage
UIImage Extension Reference