UIDevice

  • Variable to check if current system is device or not.

    Usage Example

    UIDevice.current.isDevice
    

    See also

    var isSimulator :Bool

    Declaration

    Swift

    public var isDevice :Bool
  • Variable to check if current system is simulator or not.

    Usage Example

    UIDevice.current.isSimulator
    

    See also

    var isDevice :Bool

    Declaration

    Swift

    public var isSimulator :Bool
  • Variable to check if current system is iphone or not.

    Usage Example

    UIDevice.current.isIphone
    

    See also

    var isIpad :Bool

    Declaration

    Swift

    public var isIphone :Bool
  • Variable to check if current system is iphone 4 or not.

    Usage Example

    UIDevice.current.isIphone4
    

    See also

    var isIphone5 :Bool isIphone6 :Bool isIphone6Plus :Bool

    Declaration

    Swift

    public var isIphone4 :Bool
  • Variable to check if current system is iphone 5 or not.

    Usage Example

    UIDevice.current.isIphone5
    

    See also

    var isIphone4 :Bool isIphone6 :Bool isIphone6Plus :Bool

    Declaration

    Swift

    public var isIphone5 :Bool
  • Variable to check if current system is iphone 6 or not.

    Usage Example

    UIDevice.current.isIphone6
    

    See also

    var isIphone4 :Bool var isIphone5 :Bool isIphone6Plus :Bool

    Declaration

    Swift

    public var isIphone6 :Bool
  • Variable to check if current system is iphone 6 plus or not.

    Usage Example

    UIDevice.current.isIphone6Plus
    

    See also

    var isIphone4 :Bool var isIphone5 :Bool isIphone6 :Bool

    Declaration

    Swift

    public var isIphone6Plus :Bool
  • Variable to check if current system is ipad or not.

    Usage Example

    UIDevice.current.isIpad
    

    See also

    var isIphone :Bool

    Declaration

    Swift

    public var isIpad :Bool
  • Variable to check if current system is ipad-pro or not.

    Usage Example

    UIDevice.current.isIpadPro
    

    Declaration

    Swift

    public var isIpadPro :Bool