UIDevice

public extension UIDevice

ID

  • UUID string which uniquely identifies the current device.

    Declaration

    Swift

    private(set) static var distinctID: String { get }

UIDevice.BatteryState - CustomStringConvertible

Other

  • Current device is a simulator

    Declaration

    Swift

    static let isSimulator: Bool
  • Current device is a real device

    Declaration

    Swift

    static let isReal: Bool