UIDevice
extension UIDevice
-
A Boolean value indicating whether the device is an iPad.
Declaration
Swift
static var isIPad: Bool { get } -
A Boolean value indicating whether the device is an iPhone.
Declaration
Swift
static var isIPhone: Bool { get } -
getIsIPad()AsynchronousA thread-safe method to check if the device is an iPad.
Declaration
Swift
@Sendable func getIsIPad() async -> Bool -
getIsIPhone()AsynchronousA thread-safe method to check if the device is an iPhone.
Declaration
Swift
@Sendable func getIsIPhone() async -> Bool
View on GitHub
Install in Dash