UIDevice

class UIDevice : NSObject
  • Mechanica

    Returns true if the interface is designed for iPhone or iPod.

    Declaration

    Swift

    public var hasPhoneInterface: Bool { get }
  • Mechanica

    Returns true if the interface is designed for iPad.

    Declaration

    Swift

    public var hasPadInterface: Bool { get }
  • Mechanica

    Returns true if the interface is designed for Apple TV.

    Declaration

    Swift

    public var hasTVInterface: Bool { get }
  • Mechanica

    Returns true if the interface is designed for Apple CarPlay.

    Declaration

    Swift

    public var hasCarPlayInterface: Bool { get }