Skip to content

Commit abd64c3

Browse files
fix m5 iPad Pro models
1 parent 373e974 commit abd64c3

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

Source/Device.generated.swift

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,11 +416,11 @@ public enum Device {
416416
case iPadPro13M4
417417
/// Device is an [iPad Pro 11-inch (M5)](https://support.apple.com/en-us/125406)
418418
///
419-
/// ![Image]()
419+
/// ![Image](https://cdsassets.apple.com/content/services/pub/image?productid=301271&size=240x240)
420420
case iPadPro11M5
421421
/// Device is an [iPad Pro 13-inch (M5)](https://support.apple.com/en-us/125406)
422422
///
423-
/// ![Image]()
423+
/// ![Image](https://cdsassets.apple.com/content/services/pub/image?productid=301273&size=240x240)
424424
case iPadPro13M5
425425
/// Device is a [HomePod](https://support.apple.com/kb/SP773)
426426
///
@@ -705,8 +705,8 @@ public enum Device {
705705
case "iPad14,5", "iPad14,6": return iPadPro12Inch6
706706
case "iPad16,3", "iPad16,4": return iPadPro11M4
707707
case "iPad16,5", "iPad16,6": return iPadPro13M4
708-
case "iPad17,3", "iPad17,4": return iPadPro11M5
709-
case "iPad17,5", "iPad17,6": return iPadPro13M5
708+
case "iPad17,1", "iPad17,2": return iPadPro11M5
709+
case "iPad17,3", "iPad17,4": return iPadPro13M5
710710
case "AudioAccessory1,1": return homePod
711711
case "i386", "x86_64", "arm64": return simulator(mapToDevice(identifier: ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] ?? "iOS"))
712712
default: return unknown(identifier)

Source/Device.swift.gyb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -138,8 +138,8 @@ iPads = [
138138
Device("iPadPro12Inch6", "Device is an [iPad Pro 12.9-inch (6th generation)](https://support.apple.com/kb/SP883)", "https://support.apple.com/library/APPLE/APPLECARE_ALLGEOS/SP882/ipad-pro-4gen-mainimage_2x.png", ["iPad14,5", "iPad14,6"], 12.9, (512, 683), "iPad Pro (12.9-inch) (6th generation)", "iPad Pro (12.9-inch) (6th generation)", 264, False, False, True, False, False, True, False, False, True, False, 23, False, 13, True, "m2", True, True),
139139
Device("iPadPro11M4", "Device is an [iPad Pro 11-inch (M4)](https://support.apple.com/en-us/119892)", "https://cdsassets.apple.com/content/services/pub/image?productid=301031&size=240x240", ["iPad16,3", "iPad16,4"], 11.0, (605, 417), "iPad Pro (11-inch) (M4)", "iPad Pro (11-inch) (M4)", 264, False, False, True, False, False, True, False, False, True, False, 234, False, 1, True, "m4", True, True),
140140
Device("iPadPro13M4", "Device is an [iPad Pro 13-inch (M4)](https://support.apple.com/en-us/119891)", "https://cdsassets.apple.com/content/services/pub/image?productid=301033&size=240x240", ["iPad16,5", "iPad16,6"], 13.0, (4, 3), "iPad Pro (13-inch) (M4)", "iPad Pro (13-inch) (M4)", 264, False, False, True, False, False, True, False, False, True, False, 234, False, 1, True, "m4", True, True),
141-
Device("iPadPro11M5", "Device is an [iPad Pro 11-inch (M5)](https://support.apple.com/en-us/125406)", "", ["iPad17,3", "iPad17,4"], 11.0, (605, 417), "iPad Pro (11-inch) (M5)", "iPad Pro (11-inch) (M5)", 264, False, False, True, False, False, True, False, False, True, False, 234, False, 1, True, "m5", True, True),
142-
Device("iPadPro13M5", "Device is an [iPad Pro 13-inch (M5)](https://support.apple.com/en-us/125406)", "", ["iPad17,5", "iPad17,6"], 13.0, (4, 3), "iPad Pro (13-inch) (M5)", "iPad Pro (13-inch) (M5)", 264, False, False, True, False, False, True, False, False, True, False, 234, False, 1, True, "m5", True, True),
141+
Device("iPadPro11M5", "Device is an [iPad Pro 11-inch (M5)](https://support.apple.com/en-us/125406)", "https://cdsassets.apple.com/content/services/pub/image?productid=301271&size=240x240", ["iPad17,1", "iPad17,2"], 11.0, (605, 417), "iPad Pro (11-inch) (M5)", "iPad Pro (11-inch) (M5)", 264, False, False, True, False, False, True, False, False, True, False, 234, False, 1, True, "m5", True, True),
142+
Device("iPadPro13M5", "Device is an [iPad Pro 13-inch (M5)](https://support.apple.com/en-us/125406)", "https://cdsassets.apple.com/content/services/pub/image?productid=301273&size=240x240", ["iPad17,3", "iPad17,4"], 13.0, (4, 3), "iPad Pro (13-inch) (M5)", "iPad Pro (13-inch) (M5)", 264, False, False, True, False, False, True, False, False, True, False, 234, False, 1, True, "m5", True, True),
143143
]
144144

145145
homePods = [

0 commit comments

Comments
 (0)