Skip to content

Commit

Permalink
Merge pull request #10 from mobillium/feature/add-iphone-16
Browse files Browse the repository at this point in the history
Add iphone 16 models
  • Loading branch information
alihanaktay authored Nov 4, 2024
2 parents a159cd4 + c603716 commit 27a1220
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
2 changes: 1 addition & 1 deletion MBLDeviceModelHelper.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |spec|
spec.name = 'MBLDeviceModelHelper'
spec.version = '1.4.0'
spec.version = '1.5.0'
spec.summary = 'Device Model Name helper for iOS apps.'

spec.homepage = 'https://github.com/mobillium/MBLDeviceModelHelper'
Expand Down
4 changes: 4 additions & 0 deletions Sources/MBLDeviceModelHelper/Classes/DeviceModelList.swift
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ public enum DeviceModelList: String {
case iPhone15Plus = "iPhone 15 Plus"
case iPhone15Pro = "iPhone 15 Pro"
case iPhone15ProMax = "iPhone 15 Pro Max"
case iPhone16 = "iPhone 16"
case iPhone16Plus = "iPhone 16 Plus"
case iPhone16Pro = "iPhone 16 Pro"
case iPhone16ProMax = "iPhone 16 Pro Max"

//MARK: - iPod
case iPod1 = "1st Gen iPod"
Expand Down
5 changes: 5 additions & 0 deletions Sources/MBLDeviceModelHelper/Classes/UIDevice+Extension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,11 @@ var type: DeviceModelList {
"iPhone15,5" : .iPhone15Plus,
"iPhone16,1" : .iPhone15Pro,
"iPhone16,2" : .iPhone15ProMax,
"iPhone17,1" : .iPhone16Pro,
"iPhone17,2" : .iPhone16ProMax,
"iPhone17,3" : .iPhone16,
"iPhone17,4" : .iPhone16Plus,


// MARK: - iPad
"iPad1,1" : .iPad,
Expand Down

0 comments on commit 27a1220

Please sign in to comment.