Releases: devicekit/DeviceKit
Version 4.2.1
Version 4.2.0
This release will add support for the October 2020 devices. (#262)
- iPad Air (4th generation)
- iPhone 12
- iPhone 12 mini
- iPhone 12 Pro
- iPhone 12 Pro Max
The technical identifiers are there. Images and support links will be added in a feature release. Thanks @Zandor300 🎉.
Version 4.1.0
This release will add support for the September 2020 devices, which will be released on the 18th of September: (#256)
- iPad (8th generation)
- Apple Watch Series 6
- Apple Watch SE
Device.iPad8
Device.appleWatchSeries6_40mm
Device.appleWatchSeries6_44mm
Device.appleWatchSE_40mm
Device.appleWatchSE_44mm
Support for iPad Air (4th generation) will be added in a later version since it will be a long time before we know its device identifiers.
Version 4.0.0
Version 3.2.0: Add support for iPhone SE (2nd generation)
Added support for the iPhone SE (2nd generation). (#238)
Thanks @Zandor300 🎉
Version 3.1.0: Add support for the 2020 iPad Pro
Thank you @Zandor300 and everyone who opened issues and provided pull requests! 🥳
2020 iPad Pro
- Added support for the new 2020 iPad Pro. (#235)
Device.iPadPro11Inch2 // iPad Pro (11-inch) (2nd generation)
Device.iPadPro12inch4 // iPad Pro (12.9-inch) (4th generation)
New features
- Added new functions for detecting LiDAR support.
Device.allDevicesWithALidarSensor
andDevice.current.hasLidarSensor
Version 3.0.0
Thank you @Zandor300 and everyone who opened issues and provided pull requests! 🥳
Breaking changes
- The enum for the Apple TV HD has been renamed from
.appleTV4
to.appleTVHD
. (#211) .allSimulatorXSeriesDevices
has been deprecated and replaced by.allSimulatorDevicesWithSensorHousing
. (#212).allXSeriesDevices
has been deprecated and replaced by.allDevicesWithSensorHousing
. (#212)
Camera
CameraTypes
has been renamed toCameraType
. (#212)CameraType.normal
has been deprecated and replaced byCameraType.wide
. (#212).allDevicesWithNormalCamera
has been deprecated and replaced by.allDevicesWithWideCamera
. (#212).hasNormalCamera
has been deprecated and replaced by.hasWideCamera
. (#212)
New features
- You can now check which devices support wireless charging through the following variables:
Device.allDevicesWithWirelessChargingSupport
andDevice.current.supportsWirelessCharging
(#209) - New
.safeDescription
variable that will provide you with a safe version of the.description
variable. (#212)- Example: "iPhone Xʀ" vs "iPhone XR"
Bugfixes
Version 2.3.0
Thank you @Zandor300 🎉!
New devices
- Added support for the new September 2019 devices:
- iPad (7th generation)
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.cameras
now has the.ultraWide
camera 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.allApplePencilCapableDevices
andDevice.current.applePencilSupport
variables for checking Apple Pencil support. (#179).applePencilSupport
returnsApplePencilSupport.firstGeneration
orApplePencilSupport.secondGeneration
for checking which Apple Pencil is supported.
- Added 3D Touch (iOS) and Force Touch (watchOS) support variables: (#183)
- iOS
Device.allDevicesWith3dTouchSupport
Device.current.has3dTouchSupport
- watchOS
Device.allWatchesWithForceTouchSupport
Device.current.hasForceTouchSupport
- iOS
- Added variable to check for the camera's a device has. (#188)
- Example:
Device.iPhoneXS.cameras
should returnCameraTypes.normal
andCameraTypes.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.isZoomed
variable. (#59 comment and #198)