Commit 6cdeb44d by Daniel Dahan Committed by GitHub

Merge pull request #1101 from chuynadamas/master

- Enum for support iPhoneX
parents 98dc389c efb655ab
...@@ -45,6 +45,7 @@ public enum DeviceModel: Int { ...@@ -45,6 +45,7 @@ public enum DeviceModel: Int {
case iPhone6sPlus case iPhone6sPlus
case iPhone7 case iPhone7
case iPhone7Plus case iPhone7Plus
case iPhoneX
case iPhoneSE case iPhoneSE
case iPad2 case iPad2
case iPad3 case iPad3
...@@ -95,6 +96,7 @@ public struct Device { ...@@ -95,6 +96,7 @@ public struct Device {
case "iPhone8,4": return .iPhoneSE case "iPhone8,4": return .iPhoneSE
case "iPhone9,1", "iPhone9,3": return .iPhone7 case "iPhone9,1", "iPhone9,3": return .iPhone7
case "iPhone9,2", "iPhone9,4": return .iPhone7Plus case "iPhone9,2", "iPhone9,4": return .iPhone7Plus
case "iPhone10,3","iPhone10,6": return .iPhoneX
case "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4": return .iPad2 case "iPad2,1", "iPad2,2", "iPad2,3", "iPad2,4": return .iPad2
case "iPad3,1", "iPad3,2", "iPad3,3": return .iPad3 case "iPad3,1", "iPad3,2", "iPad3,3": return .iPad3
case "iPad3,4", "iPad3,5", "iPad3,6": return .iPad4 case "iPad3,4", "iPad3,5", "iPad3,6": return .iPad4
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment