UIColor

extension UIColor
  • Extension to UIColor, to return colors from Fiori Design Language palette

    Declaration

    Swift

    public class func preferredFioriColor(forStyle style: FUIColorStyle) -> UIColor

    Parameters

    style

    Style enum from Fiori Design Language palette

    Return Value

    UIColor

  • Extension to UIColor, to return colors from Fiori Design Language palette.

    Declaration

    Swift

    public class func preferredFioriColor(forStyle style: FUIColorStyle, background scheme: FUIBackgroundColorScheme? = nil, interface level: FUIInterfaceLevel? = nil, display mode: FUIColorDisplayMode? = nil) -> UIColor

    Parameters

    style

    Style enum from Fiori Design Language palette

    scheme

    specifies whether the color should be used in front of a light background, or a dark background. E.g. a “white” background is a “light” background. A “dark blue” background is a “dark” background. Defaults to light.

    Return Value

    UIColor

  • UIColor value for default UIKit tint color

    Declaration

    Swift

    public static let appleDefaultTint: UIColor

    Return Value

    UIColor equal to UIView().tintColor

  • Check to see if it is the default Apple tint color

    Declaration

    Swift

    public func isAppleDefaultTint() -> Bool

    Return Value

    true if yes; otherwise, false

  • Check to see if the given color is the same

    Declaration

    Swift

    public func equals(_ other: UIColor) -> Bool

    Parameters

    other

    A given color to compare with

    Return Value

    true if yes; otherwise, false