UIViewController
extension UIViewController
Flags for various display modes.
-
Returns true, if we are in Dark Mode.
Declaration
Swift
@MainActor var isDarkMode: Bool { get }
-
Returns true, if we are in High Contrast Mode.
Declaration
Swift
@MainActor var isHighContrastMode: Bool { get }
-
Returns true, if we are in Reduced Transparency Mode.
Declaration
Swift
@MainActor var isReducedTransparencyMode: Bool { get }
-
Returns the interface (not device) orientation
Declaration
Swift
@MainActor var windowInterfaceOrientation: UIInterfaceOrientation? { get }