UIImage
class UIImage : NSObject, NSSecureCoding
-
Adds a tint to an image
Parameter
Parameter tintColor: UIColor as the tint
Returns
UIImage
Declaration
Swift
public func tint(tintColor: UIColor) -> UIImageParameters
tintColorUIColor as the tint
Return Value
UIImage
-
Creates an image of a solid color
Parameter
Parameter color: UIColor - the image color
Parameter
Parameter size: CGSize - the size of the image
Returns
UIImage
Declaration
Swift
public class func getImageWithColor(color: UIColor, size: CGSize) -> UIImageParameters
colorUIColor - the image color
sizeCGSize - the size of the image
Return Value
UIImage
UIImage Extension Reference