Skip to content

Releases: devicekit/DeviceKit

Version 2.0

10 Apr 17:13
Compare
Choose a tag to compare

Version 2.0 release 🎉

Thank you to all the contributors who made this release happen 💕 and a special thank you to @Zandor300 for all his effort and working closely with me to release this version 😊.

Breaking changes

  • The original Device() constructor has been made private in favour of using Device.current to match UIDevice.current.
  • The enum values for the iPhone Xs, iPhone Xs Max and iPhone Xʀ have been renamed to be .iPhoneXS, .iPhoneXSMax and .iPhoneXR to match proper formatting.
  • .description for the iPhone Xs, iPhone Xs Max and iPhone Xʀ have been changed to contain small caps formatting for the s and the ʀ part.
  • .description for the iPad 5 and iPad 6 have been changed to the proper names; iPad (5th generation) and iPad (6th generation).
  • .name, .systemName, .systemVersion, .model, .localizedModel, .batteryState and .batteryLevel will now all return nil when you try to get its value when the device you are getting it from isn't the current one. (eg. Device.iPad6.name while running on iPad 5)

New features

  • Updated to Swift 5!
  • New .allDevicesWithRoundedDisplayCorners and .hasRoundedDisplayCorners values to check if a device has rounded display corners. (eg. iPhone Xs and iPad Pro (3rd generation))
  • new .allDevicesWithSensorHousing and .hasSensorHousing values to check if a device has a screen cutout for the sensor housing. (eg. iPhone Xs)

Bugfixes

  • .isPad and .isPhone are now giving correct outputs again.

Bugfixes

12 Dec 10:51
Compare
Choose a tag to compare

Thank you @phimage for this!

Support for new iPad Pro (11" and 12.9" 3rd Gen)

01 Nov 12:08
Compare
Choose a tag to compare
1.10.0

release version 1.10.0

watchOS ⌚️

11 Oct 20:20
Compare
Choose a tag to compare

Yes, you read that right, watchOS support.

Huge thanks to @robbiet480 for implementing this 100%

Add support for Swift < 4.2 to latest model update

18 Sep 17:17
Compare
Choose a tag to compare

Support for iPhone Xs, iPhone Xs Max and iPhone Xr

17 Sep 19:01
Compare
Choose a tag to compare

Thanks to all who contributed, especially @mishagray

Device Orientation and Disk Space

13 Apr 16:43
Compare
Choose a tag to compare

Thanks to @mumer92 for the device orientation feature and @phimage for the disk space feature! 🎉

Bugfixes and Support for iPad 6

04 Apr 16:37
Compare
Choose a tag to compare

This fixes several bugs:

  • Documentation issues
  • isZoomed for iPhone falsely returned true
  • reset UIDevice.current.isBatteryMonitoringEnabled to what is was before so we don't interfere with user code
  • add support for iPad 6

Low Power Mode Detection, Screen Brightness and isGuidedAccessSessionActive

29 Jan 10:36
Compare
Choose a tag to compare

New Features AND Bugfixes (new devices and more methods)

23 Sep 11:10
Compare
Choose a tag to compare
  • new device identifiers for iPhone 8, Plus and X
  • support for Apple TV 4K
  • support for HomePod
  • iOS devices have two new properties: allPlusSizedDevices and allProDevices