Skip to content

Commit

Permalink
Merge pull request #74 from jminutaglio/patch-1
Browse files Browse the repository at this point in the history
Adds iPhone SE Gen3 & iPod Air Gen 5
  • Loading branch information
Nirma authored Mar 10, 2022
2 parents 14f3f06 + e7a6502 commit 9faa141
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
7 changes: 5 additions & 2 deletions Sources/DeviceModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public enum DeviceModel: CaseIterable {
case iPhone5, iPhone5C, iPhone5S
case iPhone6, iPhone6Plus
case iPhone6S, iPhone6SPlus
case iPhoneSE, iPhoneSE2
case iPhoneSE, iPhoneSE2, iPhoneSE3
case iPhone7, iPhone7Plus
case iPhone8, iPhone8Plus
case iPhoneX
Expand All @@ -42,7 +42,7 @@ public enum DeviceModel: CaseIterable {

case iPadFirstGen, iPadSecondGen, iPadThirdGen, iPadFourthGen, iPadFifthGen, iPadSixthGen, iPadSeventhGen, iPadEighthGen, iPadNinthGen

case iPadAir, iPadAir2, iPadAir3, iPadAir4
case iPadAir, iPadAir2, iPadAir3, iPadAir4, iPadAir5

case iPadMini, iPadMini2, iPadMini3, iPadMini4, iPadMini5, iPadMini6

Expand Down Expand Up @@ -130,6 +130,8 @@ extension DeviceModel {
case (14, 2): return .iPhone13Pro
case (14, 3): return .iPhone13ProMax

case (14, 6): return .iPhoneSE3

default: return .unknown
}
}
Expand Down Expand Up @@ -159,6 +161,7 @@ extension DeviceModel {
case (5, 3), (5, 4): return .iPadAir2
case (11, 3), (11, 4): return .iPadAir3
case (13, 1), (13, 2): return .iPadAir4
case (13, 17), (13, 18): return .iPadAir5
case (2, 5), (2, 6), (2, 7): return .iPadMini
case (4, 4), (4, 5), (4, 6): return .iPadMini2
case (4, 7), (4, 8), (4, 9): return .iPadMini3
Expand Down
6 changes: 6 additions & 0 deletions Sources/Identifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,8 @@ extension Identifier: CustomStringConvertible {
return "iPhone 13 mini"
case (14, 5):
return "iPhone 13"
case (14, 6):
return "iPhone SE (3nd Gen)"

default:
return "unknown"
Expand Down Expand Up @@ -313,6 +315,10 @@ extension Identifier: CustomStringConvertible {
return "3rd Gen iPad Air (Wi-Fi+LTE)"
case (13, 1):
return "4th Gen iPad Air (Wi-Fi)"
case (13, 17):
return "5th Gen iPad Air (Wi-Fi)"
case (13, 18):
return "5th Gen iPad Air (Wi-Fi+LTE)"
case (13, 2):
return "4th Gen iPad Air (Wi-Fi+LTE)"
case (11, 6):
Expand Down

0 comments on commit 9faa141

Please sign in to comment.