Skip to content

Commit 3539d70

Browse files
Add support for iPod Touch gen 7
1 parent bd37bfb commit 3539d70

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Source/UIDeviceModel.swift

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public enum UIDeviceModel {
5858
case iPodTouch4
5959
case iPodTouch5
6060
case iPodTouch6
61+
case iPodTouch7
6162

6263
indirect case simulator(UIDeviceModel)
6364

@@ -147,6 +148,7 @@ extension UIDeviceModel {
147148
case "iPod4,1": return .iPodTouch4
148149
case "iPod5,1": return .iPodTouch5
149150
case "iPod7,1": return .iPodTouch6
151+
case "iPod9,1": return .iPodTouch7
150152

151153
case "i386", "x86_64": return .simulator(mapToDevice(identifier: ProcessInfo().environment["SIMULATOR_MODEL_IDENTIFIER"] ?? "iOS"))
152154
default: return .unknown(identifier)

0 commit comments

Comments
 (0)