Dmitry Sokolov

1pod

DSDeviceKit

This CocoaPod is a wrapper for UIDevice that provides a better way to get information about current device. Written in Swift

Static instance of DSDeviceKit (currentDevice) has many properties, such as:

  • modelName // "iPhone 6s"
  • iOSVersion // "9.3"
  • deviceType // .iPhone or .iPad
  • identifier // "iPhone8,1"
  • isPhone // true or false
  • isIpad // true of false
  • orientation // UIDeviceOrientation
  • userInterface // UIUserInterfaceIdiom

License: MIT

  • Swift