Skip to content

Commit

Permalink
✨ 아이폰 15 시리즈 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
chorr committed Oct 10, 2023
1 parent c275054 commit 9c7e946
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion GBDeviceInfo.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'GBDeviceInfo'
s.version = '6.7.4'
s.version = '6.7.5'
s.summary = 'Detects the hardware, software and display of the current iOS or Mac OS X device at runtime.'
s.author = 'Luka Mirosevic'
s.homepage = 'https://github.com/lmirosevic/GBDeviceInfo'
Expand Down
4 changes: 4 additions & 0 deletions GBDeviceInfo/GBDeviceInfoTypes_iOS.h
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,10 @@ typedef NS_ENUM(NSInteger, GBDeviceModel) {
GBDeviceModeliPhone14Plus,
GBDeviceModeliPhone14Pro,
GBDeviceModeliPhone14ProMax,
GBDeviceModeliPhone15,
GBDeviceModeliPhone15Plus,
GBDeviceModeliPhone15Pro,
GBDeviceModeliPhone15ProMax,
GBDeviceModeliPad1,
GBDeviceModeliPad2,
GBDeviceModeliPad3,
Expand Down
14 changes: 13 additions & 1 deletion GBDeviceInfo/GBDeviceInfo_iOS.m
Original file line number Diff line number Diff line change
Expand Up @@ -281,7 +281,19 @@ + (NSArray *)_modelNuances {

// 14 Pro Max
@[@15, @3]: @[@(GBDeviceModeliPhone14ProMax), @"iPhone 14 Pro Max", @(GBDeviceDisplay6p7Inch), @460],


// 15
@[@15, @4]: @[@(GBDeviceModeliPhone15), @"iPhone 15", @(GBDeviceDisplay6p1Inch), @460],

// 15 Plus
@[@15, @5]: @[@(GBDeviceModeliPhone15Plus), @"iPhone 15 Plus", @(GBDeviceDisplay6p7Inch), @460],

// 15 Pro
@[@16, @1]: @[@(GBDeviceModeliPhone15Pro), @"iPhone 15 Pro", @(GBDeviceDisplay6p1Inch), @460],

// 15 Pro Max
@[@16, @2]: @[@(GBDeviceModeliPhone15ProMax), @"iPhone 15 Pro Max", @(GBDeviceDisplay6p7Inch), @460],

},
@"iPad": @{
// 1
Expand Down

0 comments on commit 9c7e946

Please sign in to comment.