Releases: devicekit/DeviceKit
Releases · devicekit/DeviceKit
Version 2.2.0
Thank you to all the contributors and a special thanks to @Zandor300 🎉!
New devices
- Added support for the new September 2019 devices:
- iPhone 11
- iPhone 11 Pro
- iPhone 11 Pro Max
- Apple Watch Series 5
Support for iPad (7th generation) will be added later.
New features
Device.current.camerasnow has the.ultraWidecamera type added for devices with that camera.
Version 2.1.0
Thank you for all for your contributions and a special thank you to @Zandor300! 🎉
New features
- Add support for the new iPod touch (7th generation) (#189)
- Added
Device.allApplePencilCapableDevicesandDevice.current.applePencilSupportvariables for checking Apple Pencil support. (#179).applePencilSupportreturnsApplePencilSupport.firstGenerationorApplePencilSupport.secondGenerationfor checking which Apple Pencil is supported.
- Added 3D Touch (iOS) and Force Touch (watchOS) support variables: (#183)
- iOS
Device.allDevicesWith3dTouchSupportDevice.current.has3dTouchSupport
- watchOS
Device.allWatchesWithForceTouchSupportDevice.current.hasForceTouchSupport
- iOS
- Added variable to check for the camera's a device has. (#188)
- Example:
Device.iPhoneXS.camerasshould returnCameraTypes.normalandCameraTypes.telephoto.
- Example:
Fixes
- Rename iPod touch 5 and 6 to iPod touch (5th generation) and iPod touch (6th generation) respectively. (#189)
- Rename Apple TV (4th generation) to Apple TV HD to comply with Apple's rename of the device. (#196)
- Improve support for Swift Package Manager. (#193)
- Fixed the
Device.current.isZoomedvariable. (#59 comment and #198)
Version 2.0
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 usingDevice.currentto matchUIDevice.current. - The enum values for the iPhone Xs, iPhone Xs Max and iPhone Xʀ have been renamed to be
.iPhoneXS,.iPhoneXSMaxand.iPhoneXRto match proper formatting. .descriptionfor the iPhone Xs, iPhone Xs Max and iPhone Xʀ have been changed to contain small caps formatting for the s and the ʀ part..descriptionfor 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,.batteryStateand.batteryLevelwill 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.namewhile running on iPad 5)
New features
- Updated to Swift 5!
- New
.allDevicesWithRoundedDisplayCornersand.hasRoundedDisplayCornersvalues to check if a device has rounded display corners. (eg. iPhone Xs and iPad Pro (3rd generation)) - new
.allDevicesWithSensorHousingand.hasSensorHousingvalues to check if a device has a screen cutout for the sensor housing. (eg. iPhone Xs)
Bugfixes
.isPadand.isPhoneare now giving correct outputs again.
Bugfixes
Support for new iPad Pro (11" and 12.9" 3rd Gen)
1.10.0 release version 1.10.0
watchOS ⌚️
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
1.8.1 new version 1.8.1
Support for iPhone Xs, iPhone Xs Max and iPhone Xr
Thanks to all who contributed, especially @mishagray
Device Orientation and Disk Space
Bugfixes and Support for iPad 6
This fixes several bugs:
- Documentation issues
isZoomedfor iPhone falsely returnedtrue- reset
UIDevice.current.isBatteryMonitoringEnabledto what is was before so we don't interfere with user code - add support for iPad 6