UIDevice

extension UIDevice

Internal

  • 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() Asynchronous

    A thread-safe method to check if the device is an iPad.

    Declaration

    Swift

    @Sendable
    func getIsIPad() async -> Bool
  • getIsIPhone() Asynchronous

    A thread-safe method to check if the device is an iPhone.

    Declaration

    Swift

    @Sendable
    func getIsIPhone() async -> Bool