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) -> UIColor
Parameters
red
A CGFloat to define the ‘red’ colour intesity.
green
A CGFloat to define the ‘green’ colour intesity.
blue
A CGFloat to define the ‘blue’ colour intesity.
alpha
A CGFloat to define the color’s opacity.
Return Value
A UIColor instance representing the RGBA color values.