Skip to content

Commit bd37bfb

Browse files
Add support for iPad Mini Gen 5 and Air Gen 3
1 parent 7b3e9f4 commit bd37bfb

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

Source/UIDeviceModel.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ public enum UIDeviceModel {
1717
case iPad6
1818
case iPadAir
1919
case iPadAir2
20+
case iPadAir3
2021
case iPadPro9Inch
2122
case iPadPro10Inch
2223
case iPadPro11Inch
@@ -27,9 +28,9 @@ public enum UIDeviceModel {
2728
case iPadMini2
2829
case iPadMini3
2930
case iPadMini4
31+
case iPadMini5
3032

31-
/// Also known as iPhone 2G
32-
case iPhone
33+
case iPhone // Also known as iPhone 2G
3334
case iPhone3G
3435
case iPhone3GS
3536
case iPhone4
@@ -59,7 +60,8 @@ public enum UIDeviceModel {
5960
case iPodTouch6
6061

6162
indirect case simulator(UIDeviceModel)
62-
/// Device is not yet known or implemented
63+
64+
// Device is not yet known or implemented
6365
case unknown(String)
6466
}
6567

@@ -114,6 +116,8 @@ extension UIDeviceModel {
114116
case "iPad7,5", "iPad7,6": return .iPad6
115117
case "iPad8,1", "iPad8,2", "iPad8,3", "iPad8,4": return .iPadPro11Inch
116118
case "iPad8,5", "iPad8,6", "iPad8,7", "iPad8,8": return .iPadPro12Inch3
119+
case "iPad11,1", "iPad11,2": return .iPadMini5
120+
case "iPad11,3", "iPad11,4": return .iPadAir3
117121

118122
case "iPhone1,1": return .iPhone
119123
case "iPhone1,2": return .iPhone3G

0 commit comments

Comments
 (0)