Skip to content

Commit

Permalink
Add New iPads (#118)
Browse files Browse the repository at this point in the history
* Add New iPads

* Code Format

* Code Format
  • Loading branch information
mlch911 authored May 10, 2023
1 parent 5580a3c commit 78339e7
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
4 changes: 4 additions & 0 deletions Source/Version.swift
Original file line number Diff line number Diff line change
Expand Up @@ -56,10 +56,12 @@ public enum Version: String {
case iPad7
case iPad8
case iPad9
case iPad10
case iPadAir
case iPadAir2
case iPadAir3
case iPadAir4
case iPadAir5
case iPadMini
case iPadMini2
case iPadMini3
Expand All @@ -76,8 +78,10 @@ public enum Version: String {
case iPadPro12_9Inch3
case iPadPro11_0Inch2
case iPadPro11_0Inch3
case iPadPro11_0Inch4
case iPadPro12_9Inch4
case iPadPro12_9Inch5
case iPadPro12_9Inch6

/*** iPod ***/
case iPodTouch1Gen
Expand Down
6 changes: 5 additions & 1 deletion Source/iOS/Device.swift
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ open class Device {
case "iPhone14,5": return .iPhone13
case "iPhone14,2": return .iPhone13Pro
case "iPhone14,3": return .iPhone13Pro_Max
case "iPhone14,7": return .iPhone14
case "iPhone14,7": return .iPhone14
case "iPhone14,8": return .iPhone14Plus
case "iPhone15,2": return .iPhone14Pro
case "iPhone15,3": return .iPhone14Pro_Max
Expand All @@ -70,10 +70,12 @@ open class Device {
case "iPad7,11", "iPad7,12": return .iPad7
case "iPad11,6", "iPad11,7": return .iPad8
case "iPad12,1", "iPad12,2": return .iPad9
case "iPad13,18", "iPad13,19": return .iPad10
case "iPad4,1", "iPad4,2", "iPad4,3": return .iPadAir
case "iPad5,3", "iPad5,4": return .iPadAir2
case "iPad11,3", "iPad11,4": return .iPadAir3
case "iPad13,1", "iPad13,2": return .iPadAir4
case "iPad13,16", "iPad13,17": return .iPadAir5
case "iPad2,5", "iPad2,6", "iPad2,7": return .iPadMini
case "iPad4,4", "iPad4,5", "iPad4,6": return .iPadMini2
case "iPad4,7", "iPad4,8", "iPad4,9": return .iPadMini3
Expand All @@ -92,6 +94,8 @@ open class Device {
case "iPad13,4", "iPad13,5", "iPad13,6", "iPad13,7": return .iPadPro11_0Inch3
case "iPad8,11", "iPad8,12": return .iPadPro12_9Inch4
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

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

0 comments on commit 78339e7

Please sign in to comment.