UIColor

class UIColor : NSObject, NSSecureCoding, NSCopying
  • r

    Return the red component of the UIColor

    Declaration

    Swift

    internal var r: CGFloat { get }
  • g

    Return the green component of the UIColor

    Declaration

    Swift

    internal var g: CGFloat { get }
  • b

    Return the blue component of the UIColor

    Declaration

    Swift

    internal var b: CGFloat { get }
  • a

    Return the alpha component of the UIColor

    Declaration

    Swift

    internal var a: CGFloat { get }
  • Interpolate a fraction between the current color and a second one

    • to: The second color.
    • fraction: The percent of current color and second one.

    Declaration

    Swift

    internal func interpolate(to: UIColor, fraction: CGFloat) -> UIColor?