InterfaceLevel

public enum InterfaceLevel : String, CaseIterable
extension InterfaceLevel: CustomDebugStringConvertible

Undocumented

    • Use device specified elevation level of the interface

    Declaration

    Swift

    case device
    • Use inversed device specified elevation level of the interface

    Declaration

    Swift

    case deviceInverse
    • Use base interface level, which is usually used to display application window’s main content

    Declaration

    Swift

    case baseConstant
    • Use elevated interface level, which is usually used to highlight contents above window’s main content

    Declaration

    Swift

    case elevatedConstant
  • Helper function to return an opposite user interface level of current value.

    Declaration

    Swift

    public func inverse() -> InterfaceLevel

    Return Value

    inverse of current user interface level.