Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 7 additions & 6 deletions SDVersion/SDiOSVersion/SDiOSVersion.h
Original file line number Diff line number Diff line change
Expand Up @@ -42,13 +42,14 @@ typedef NS_ENUM(NSInteger, DeviceVersion){
iPad5 = 30,
iPadPro12Dot9Inch2Gen = 31,
iPadPro10Dot5Inch = 32,
iPad6 = 33,

iPodTouch1Gen = 33,
iPodTouch2Gen = 34,
iPodTouch3Gen = 35,
iPodTouch4Gen = 36,
iPodTouch5Gen = 37,
iPodTouch6Gen = 38
iPodTouch1Gen = 34,
iPodTouch2Gen = 35,
iPodTouch3Gen = 36,
iPodTouch4Gen = 37,
iPodTouch5Gen = 38,
iPodTouch6Gen = 39
};

typedef NS_ENUM(NSInteger, DeviceSize){
Expand Down
3 changes: 3 additions & 0 deletions SDVersion/SDiOSVersion/SDiOSVersion.m
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ + (NSDictionary*)deviceNamesByCode
@"iPad7,2" : @(iPadPro12Dot9Inch2Gen),
@"iPad7,3" : @(iPadPro10Dot5Inch),
@"iPad7,4" : @(iPadPro10Dot5Inch),
@"iPad7,5" : @(iPad6),
@"iPad7,6" : @(iPad6),

//iPods
@"iPod1,1" : @(iPodTouch1Gen),
Expand Down Expand Up @@ -202,6 +204,7 @@ + (NSString *)deviceNameForVersion:(DeviceVersion)deviceVersion
@(iPad5) : @"iPad 5",
@(iPadPro10Dot5Inch) : @"iPad Pro 10.5 inch",
@(iPadPro12Dot9Inch2Gen): @"iPad Pro 12.9 inch",
@(iPad6) : @"iPad 6",

@(iPodTouch1Gen) : @"iPod Touch 1st Gen",
@(iPodTouch2Gen) : @"iPod Touch 2nd Gen",
Expand Down