UIDeviceProvider
public final class UIDeviceProvider : UIDeviceProviderType, @unchecked Sendable
A concrete implementation of the UIDeviceProviderType protocol which can be used in app code
to return the corresponding values from UIDevice.current.
When instantiating beginGeneratingDeviceOrientationNotifications() will be called on
UIDevice.current to start the generation of device orientations so that deviceOrientation returns correct values.
On de-init endGeneratingDeviceOrientationNotifications() will be called to stop it.
-
Undocumented
Declaration
Swift
@MainActor public init() -
Declaration
Swift
@MainActor public var userInterfaceIdiom: UIUserInterfaceIdiom { get } -
Declaration
Swift
public var isSimulator: Bool { get } -
Declaration
Swift
@MainActor public var deviceOrientation: UIDeviceOrientation { get }
View on GitHub