Skip to content

Commit

Permalink
Fix New iPad (#137)
Browse files Browse the repository at this point in the history
  • Loading branch information
mlch911 authored Sep 22, 2024
1 parent 8eef81c commit a22c0ab
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
6 changes: 4 additions & 2 deletions Source/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,8 @@ public enum Version: String {
case iPadMini4
case iPadMini5
case iPadMini6
case iPadAirM2_11Inch
case iPadAirM2_13Inch

/*** iPadPro ***/
case iPadPro9_7Inch
Expand All @@ -87,8 +89,8 @@ public enum Version: String {
case iPadPro12_9Inch4
case iPadPro12_9Inch5
case iPadPro12_9Inch6
case iPadPro13InchM2
case iPadPro13InchM4
case iPadProM4_11Inch
case iPadProM4_13Inch

/*** iPod ***/
case iPodTouch1Gen
Expand Down
6 changes: 4 additions & 2 deletions Source/iOS/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ open class Device {
case "iPad5,1", "iPad5,2": return .iPadMini4
case "iPad11,1", "iPad11,2": return .iPadMini5
case "iPad14,1", "iPad14,2": return .iPadMini6
case "iPad14,8", "iPad14,9": return .iPadAirM2_11Inch
case "iPad14,10", "iPad14,11": return .iPadAirM2_13Inch

/*** iPadPro ***/
case "iPad6,3", "iPad6,4": return .iPadPro9_7Inch
Expand All @@ -101,8 +103,8 @@ open class Device {
case "iPad13,8", "iPad13,9", "iPad13,10", "iPad13,11": return .iPadPro12_9Inch5
case "iPad14,3", "iPad14,4": return .iPadPro11_0Inch4
case "iPad14,5", "iPad14,6": return .iPadPro12_9Inch6
case "iPad14,10", "iPad14,11": return .iPadPro13InchM2
case "iPad16,5", "iPad16,6": return .iPadPro13InchM4
case "iPad16,3", "iPad16,4": return .iPadProM4_11Inch
case "iPad16,5", "iPad16,6": return .iPadProM4_13Inch

/*** iPod ***/
case "iPod1,1": return .iPodTouch1Gen
Expand Down

0 comments on commit a22c0ab

Please sign in to comment.