Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iphone 16 series #2

Open
wants to merge 1 commit into
base: add-support-iphone-15
Choose a base branch
from
Open
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
14 changes: 14 additions & 0 deletions Device/UIDeviceExtension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,11 +64,17 @@ public enum DeviceType: String, CaseIterable {
case iPhone14Plus
case iPhone14Pro
case iPhone14ProMax

case iPhone15
case iPhone15Plus
case iPhone15Pro
case iPhone15ProMax

case iPhone16
case iPhone16Plus
case iPhone16Pro
case iPhone16ProMax

case iPodTouch1G
case iPodTouch2G
case iPodTouch3G
Expand Down Expand Up @@ -175,6 +181,10 @@ public extension DeviceType {
case .iPhone15Plus: return "iPhone 15 Plus"
case .iPhone15Pro: return "iPhone 15 Pro"
case .iPhone15ProMax: return "iPhone 15 Pro Max"
case .iPhone16: return "iPhone 16"
case .iPhone16Plus: return "iPhone 16 Plus"
case .iPhone16Pro: return "iPhone 16 Pro"
case .iPhone16ProMax: return "iPhone 16 Pro Max"

case .iPodTouch1G: return "iPod Touch"
case .iPodTouch2G: return "iPod Touch (2nd generation)"
Expand Down Expand Up @@ -262,6 +272,10 @@ public extension DeviceType {
case .iPhone15Plus: return ["iPhone15,5"]
case .iPhone15Pro: return ["iPhone16,1"]
case .iPhone15ProMax: return ["iPhone16,2"]
case .iPhone16: return ["iPhone17,3"]
case .iPhone16Plus: return ["iPhone17,4"]
case .iPhone16Pro: return ["iPhone17,1"]
case .iPhone16ProMax: return ["iPhone17,2"]

case .iPodTouch1G: return ["iPod1,1"]
case .iPodTouch2G: return ["iPod2,1"]
Expand Down