UIColor

public extension UIColor
  • Generates random color

    Declaration

    Swift

    static var random: UIColor { get }

UIColor with Hexadecimal Code

  • Initialize UIColor from hexadecimal color code

    Declaration

    Swift

    convenience init(hex: String)

    Parameters

    hex

    Hexadecimal Color Code

Dark Color

  • Returns a color is dark or not

    Declaration

    Swift

    var isDarkColor: Bool { get }