Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,10 @@

## Unreleased

### Bug fixes

- Update Apple support links for iPhone and iPad models, correct the iPhone 14 Pro Max pixel density to 460 ppi, and correct the iPad Air 11-inch (M2) aspect ratio to 41:59. ([#497](https://github.com/devicekit/DeviceKit/pull/497)) Thanks to [@kudit](https://github.com/kudit)!

### Maintenance

- Simplify GYB device definitions with named feature parameters and defaults for unsupported features, preserving the generated Swift output. ([#508](https://github.com/devicekit/DeviceKit/pull/508))
Expand Down
46 changes: 23 additions & 23 deletions Source/Device.generated.swift
Original file line number Diff line number Diff line change
Expand Up @@ -202,59 +202,59 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP875/sp875-sp876-iphone14-pro-promax_2x.png)
case iPhone14ProMax
/// Device is an [iPhone 15](https://support.apple.com/en-us/111831)
/// Device is an [iPhone 15](https://support.apple.com/kb/SP901)
///
/// ![Image]()
case iPhone15
/// Device is an [iPhone 15 Plus](https://support.apple.com/en-us/111830)
/// Device is an [iPhone 15 Plus](https://support.apple.com/kb/SP902)
///
/// ![Image]()
case iPhone15Plus
/// Device is an [iPhone 15 Pro](https://support.apple.com/en-us/111829)
/// Device is an [iPhone 15 Pro](https://support.apple.com/kb/SP903)
///
/// ![Image]()
case iPhone15Pro
/// Device is an [iPhone 15 Pro Max](https://support.apple.com/en-us/111828)
/// Device is an [iPhone 15 Pro Max](https://support.apple.com/kb/SP904)
///
/// ![Image]()
case iPhone15ProMax
/// Device is an [iPhone 16]()
/// Device is an [iPhone 16](https://support.apple.com/121029)
///
/// ![Image]()
case iPhone16
/// Device is an [iPhone 16 Plus]()
/// Device is an [iPhone 16 Plus](https://support.apple.com/121030)
///
/// ![Image]()
case iPhone16Plus
/// Device is an [iPhone 16 Pro]()
/// Device is an [iPhone 16 Pro](https://support.apple.com/121031)
///
/// ![Image]()
case iPhone16Pro
/// Device is an [iPhone 16 Pro Max]()
/// Device is an [iPhone 16 Pro Max](https://support.apple.com/121032)
///
/// ![Image]()
case iPhone16ProMax
/// Device is an [iPhone 16e](https://support.apple.com/en-us/122208)
/// Device is an [iPhone 16e](https://support.apple.com/122208)
///
/// ![Image](https://cdsassets.apple.com/live/7WUAS350/images/tech-specs/122208-iphone-16e.png)
case iPhone16e
/// Device is an [iPhone 17]()
/// Device is an [iPhone 17](https://support.apple.com/125089)
///
/// ![Image]()
case iPhone17
/// Device is an [iPhone 17 Pro]()
/// Device is an [iPhone 17 Pro](https://support.apple.com/125090)
///
/// ![Image]()
case iPhone17Pro
/// Device is an [iPhone 17 Pro Max]()
/// Device is an [iPhone 17 Pro Max](https://support.apple.com/125091)
///
/// ![Image]()
case iPhone17ProMax
/// Device is an [iPhone Air]()
/// Device is an [iPhone Air](https://support.apple.com/125092)
///
/// ![Image]()
case iPhoneAir
/// Device is an [iPhone 17e]()
/// Device is an [iPhone 17e](https://support.apple.com/126470)
///
/// ![Image]()
case iPhone17e
Expand Down Expand Up @@ -306,7 +306,7 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP884/sp884-ipad-10gen-960_2x.png)
case iPad10
/// Device is an [iPad (A16)]()
/// Device is an [iPad (A16)](https://support.apple.com/122240)
///
/// ![Image]()
case iPadA16
Expand All @@ -318,27 +318,27 @@ public enum Device {
///
/// ![Image](https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP866/sp866-ipad-air-5gen_2x.png)
case iPadAir5
/// Device is an [iPad Air 11-inch (M2)](https://support.apple.com/en-us/119894)
/// Device is an [iPad Air 11-inch (M2)](https://support.apple.com/119894)
///
/// ![Image](https://cdsassets.apple.com/content/services/pub/image?productid=301027&size=240x240)
case iPadAir11M2
/// Device is an [iPad Air 13-inch (M2)](https://support.apple.com/en-us/119893)
/// Device is an [iPad Air 13-inch (M2)](https://support.apple.com/119893)
///
/// ![Image](https://cdsassets.apple.com/content/services/pub/image?productid=301029&size=240x240)
case iPadAir13M2
/// Device is an [iPad Air 11-inch (M3)]()
/// Device is an [iPad Air 11-inch (M3)](https://support.apple.com/122241)
///
/// ![Image](https://cdsassets.apple.com/content/services/pub/image?productid=301027&size=240x240)
case iPadAir11M3
/// Device is an [iPad Air 13-inch (M3)]()
/// Device is an [iPad Air 13-inch (M3)](https://support.apple.com/122242)
///
/// ![Image](https://cdsassets.apple.com/content/services/pub/image?productid=301029&size=240x240)
case iPadAir13M3
/// Device is an [iPad Air 11-inch (M4)]()
/// Device is an [iPad Air 11-inch (M4)](https://support.apple.com/126471)
///
/// ![Image]()
case iPadAir11M4
/// Device is an [iPad Air 13-inch (M4)]()
/// Device is an [iPad Air 13-inch (M4)](https://support.apple.com/126472)
///
/// ![Image]()
case iPadAir13M4
Expand Down Expand Up @@ -1014,7 +1014,7 @@ public enum Device {
case .iPadA16: return (width: 41, height: 59)
case .iPadAir4: return (width: 41, height: 59)
case .iPadAir5: return (width: 41, height: 59)
case .iPadAir11M2: return (width: 59, height: 41)
case .iPadAir11M2: return (width: 41, height: 59)
case .iPadAir13M2: return (width: 683, height: 512)
case .iPadAir11M3: return (width: 59, height: 41)
case .iPadAir13M3: return (width: 683, height: 512)
Expand Down Expand Up @@ -1532,7 +1532,7 @@ public enum Device {
case .iPhone14: return 460
case .iPhone14Plus: return 458
case .iPhone14Pro: return 460
case .iPhone14ProMax: return 458
case .iPhone14ProMax: return 460
case .iPhone15: return 460
case .iPhone15Plus: return 460
case .iPhone15Pro: return 460
Expand Down
Loading