Changelog History
Page 2
-
v4.1.0 Changes
September 21, 2020๐ Releasedate: 2020-09-21
pod 'DeviceKit', :git => 'https://github.com/devicekit/DeviceKit.git', :branch => 'master' #pod 'DeviceKit', '~> 4.1'
๐ 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 ```swift 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.
-
v4.0.0 Changes
September 04, 2020๐ Releasedate: 2020-09-04
pod 'DeviceKit', :git => 'https://github.com/devicekit/DeviceKit.git', :branch => 'master' #pod 'DeviceKit', '~> 4.0'
๐ This is a v4.0.0 release because of the possibly breaking change of no longer supporting iOS 9. This decision was made because of Xcode 12 no longer supporting iOS 8.
-
v3.2.0 Changes
April 29, 2020๐ Releasedate: 2020-04-29
pod 'DeviceKit', :git => 'https://github.com/devicekit/DeviceKit.git', :branch => 'master' #pod 'DeviceKit', '~> 3.2'
iPhone SE (2nd generation)
- โ Added support for the iPhone SE (2nd generation). (#238)
swift Device.iPhoneSE2
- โ Added support for the iPhone SE (2nd generation). (#238)
-
v3.1.0 Changes
March 29, 2020๐ Releasedate: 2020-03-29
pod 'DeviceKit', :git => 'https://github.com/devicekit/DeviceKit.git', :branch => 'master' #pod 'DeviceKit', '~> 3.1'
2020 iPad Pro
- โ Added support for the new 2020 iPad Pro. (#235)
swift 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
- โ Added support for the new 2020 iPad Pro. (#235)
-
v3.0.0 Changes
January 20, 2020๐ Releasedate: 2020-01-19
pod 'DeviceKit', :git => 'https://github.com/devicekit/DeviceKit.git', :branch => 'master' #pod 'DeviceKit', '~> 3.0'
๐ฅ 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
- The enum for the Apple TV HD has been renamed from
-
v2.3.0 Changes
October 02, 2019๐ฑ Thank you @Zandor300๐!
๐ New devices
- โ Added support for the new September 2019 devices:
- iPad (7th generation)
- โ Added support for the new September 2019 devices:
-
v2.2.0 Changes
September 24, 2019๐ฑ 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.
- โ Added support for the new September 2019 devices:
-
v2.1.0 Changes
September 01, 2019๐ฑ 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
- โ 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)
-
v2.0.0 Changes
April 10, 2019๐ 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.current
to matchUIDevice.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.
- The original
-
v1.13.0 Changes
March 29, 2019๐ Releasedate: 2019-03-29
pod 'DeviceKit', '~> 1.13'
๐ New iPads
โ Added new iPad Mini (5th generation) and iPad Air (3rd generation)
Device.iPadMini5 // iPad Mini (5th generation) Device.iPadAir3 // iPad Air (3rd generation)