UIDevice

public extension UIDevice
  • Determines the machine identifier for the running device. - https://gist.github.com/adamawolf/3048717

    Declaration

    Swift

    var modelName: String { get }
  • Determines the type of device that this code is running on. Returns one of the following: phone or tablet

    Declaration

    Swift

    var deviceType: String { get }
  • Determines the generation of the running device.

    Declaration

    Swift

    var generation: Float { get }