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) -> UIImage
Parameters
tintColor
UIColor 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) -> UIImage
Parameters
color
UIColor - the image color
size
CGSize - the size of the image
Return Value
UIImage