UIViewController

extension UIViewController

Flags for various display modes.

  • Returns true, if we are in Dark Mode.

    Declaration

    Swift

    var isDarkMode: Bool { get }
  • Returns true, if we are in High Contrast Mode.

    Declaration

    Swift

    var isHighContrastMode: Bool { get }
  • Returns true, if we are in Reduced Transparency Mode.

    Declaration

    Swift

    var isReducedTransparencyMode: Bool { get }
  • Returns the interface (not device) orientation

    Declaration

    Swift

    var windowInterfaceOrientation: UIInterfaceOrientation? { get }