DeviceKit is a value-type replacement of UIDevice.
Releasedate: 2024-04-15
pod 'DeviceKit', '~> 5.2'
Thanks to all the contributers of this release!
Releasedate: 2024-01-17
pod 'DeviceKit', '~> 5.2'
Thanks to all the contributers of this release!
Releasedate: 2024-01-15
pod 'DeviceKit', '~> 5.2'
.hasUSBCConnectivity
to Device
to indicate whether the device has an USB-C port. (#373).hasDynamicIsland
to Device
to indicate whether the device has a dynamic island. (#368).has5gSupport
to Device
to indicate whether the device has 5G support. (#340)Thanks to all the contributers of this release!
Releasedate: 2023-09-21
pod 'DeviceKit', '~> 5.1'
This version adds support for the devices announced at the September 2023 Apple Event: (#360, #361)
Device | Case value |
---|---|
iPhone 15 | Device.iPhone15 |
iPhone 15 Plus | Device.iPhone15Plus |
iPhone 15 Pro | Device.iPhone15Pro |
iPhone 15 Pro Max | Device.iPhone15ProMax |
Apple Watch Series 9 | Device.appleWatchSeries9_41mm , Device.appleWatchSeries9_45mm |
Apple Watch Ultra 2 | Device.appleWatchUltra2 |
Unknown operating system for build configuration 'os'
Thanks to all the contributers of this release!
Releasedate: 2022-11-01
pod 'DeviceKit', '~> 5.0'
Platform | Previous | Now |
---|---|---|
iOS | 9.0 | 11.0 |
tvOS | 9.0 | 11.0 |
watchOS | 2.0 | 4.0 |
Device.current.cpu
. (#330).isSimulator
to tvOS and watchOS. (#245).isCanvas
which indicates whether the app is running in a SwiftUI preview. (#303)Thanks to all the contributers of this release!
Releasedate: 2022-11-01
pod 'DeviceKit', '~> 4.9'
This version adds support for the new Apple TV (3rd generation) that is released on the 4th of November 2022. (#335)
Device | Case value |
---|---|
Apple TV 4K (3rd generation) | Device.appleTV4K3 |
Thanks to all the contributers of this release!
Releasedate: 2022-10-28
pod 'DeviceKit', '~> 4.8'
This version adds support for the devices that were released in October 2022: (#334)
Device | Case value |
---|---|
iPad (10th generation) | Device.iPad10 |
iPad Pro 11-inch (4th generation) | Device.iPadPro11Inch4 |
iPad Pro 12.9-inch (6th generation) | Device.iPadPro12Inch6 |
Releasedate: 2022-09-13
pod 'DeviceKit', '~> 4.7'
This version adds support for the devices announced at the September 2022 Apple Event: (#324)
Device | Case value |
---|---|
iPhone 14 | Device.iPhone14 |
iPhone 14 Plus | Device.iPhone14Plus |
iPhone 14 Pro | Device.iPhone14Pro |
iPhone 14 Pro Max | Device.iPhone14ProMax |
Apple Watch Series 7 (Missing from DeviceKit, from last year) | Device.appleWatchSeries7_41mm , Device.appleWatchSeries7_45mm |
Apple Watch Series 8 | Device.appleWatchSeries8_41mm , Device.appleWatchSeries8_45mm |
Apple Watch SE (2nd generation) | Device.appleWatchSE2_40mm , Device.appleWatchSE2_44mm |
Apple Watch Ultra | Device.appleWatchUltra |
Fix the Device.systemName
property which now returns iPadOS
instead of iOS
when running on an iPad. (#283)
Releasedate: 2022-07-15
pod 'DeviceKit', '~> 4.6'