UIColor
public extension UIColor
-
Returns a UIColor instance for the given RGBA color values.
Declaration
Swift
class func rgba(_ red: CGFloat, _ green: CGFloat, _ blue: CGFloat, _ alpha: CGFloat) -> UIColorParameters
redA CGFloat to define the ‘red’ colour intesity.
greenA CGFloat to define the ‘green’ colour intesity.
blueA CGFloat to define the ‘blue’ colour intesity.
alphaA CGFloat to define the color’s opacity.
Return Value
A UIColor instance representing the RGBA color values.
UIColor Extension Reference