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
7 changes: 7 additions & 0 deletions Sources/Deviice/Deviice.swift
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,7 @@ public enum DeviiceType: String {
case iPhone16Plus = "iPhone 16 Plus"
case iPhone16Pro = "iPhone 16 Pro"
case iPhone16ProMax = "iPhone 16 Pro Max"
case iPhone16e = "iPhone 16e"
case iPad2 = "iPad 2"
case iPad3 = "iPad 3"
case iPad4 = "iPad 4"
Expand Down Expand Up @@ -498,6 +499,12 @@ public struct Deviice {
self.size = .screen6Dot9Inches
self.connectivity = .wiFi5G
self.year = 2024

case "iPhone17,5":
self.type = .iPhone16e
self.size = .screen6Dot1Inches
self.connectivity = .wiFi5G
self.year = 2025

// MARK: iPad

Expand Down
2 changes: 1 addition & 1 deletion Sources/Deviice/Groups.swift
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public struct Groups {
.iPhoneSE3,
.iPhone14, .iPhone14Plus, .iPhone14Pro, .iPhone14ProMax,
.iPhone15, .iPhone15Plus, .iPhone15Pro, .iPhone15ProMax,
.iPhone16, .iPhone16Plus, .iPhone16Pro, .iPhone16ProMax
.iPhone16, .iPhone16Plus, .iPhone16Pro, .iPhone16ProMax, .iPhone16e
]
}

Expand Down
1 change: 1 addition & 0 deletions Sources/Deviice/Identifier.swift
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ public enum Identifier: String, CaseIterable {
case iPhone17_2 = "iPhone17,2"
case iPhone17_3 = "iPhone17,3"
case iPhone17_4 = "iPhone17,4"
case iPhone17_5 = "iPhone17,5"

// MARK: iPad
case iPad2_1 = "iPad2,1"
Expand Down
4 changes: 3 additions & 1 deletion Sources/Deviice/Mapper.swift
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,7 @@ public struct Mapper {
case .iPhone17_2: return .iPhone16ProMax
case .iPhone17_3: return .iPhone16
case .iPhone17_4: return .iPhone16Plus
case .iPhone17_5: return .iPhone16e

// MARK: iPads
case .iPad2_1, .iPad2_2, .iPad2_3, .iPad2_4: return .iPad2
Expand Down Expand Up @@ -244,7 +245,8 @@ public struct Mapper {
.iPhone14Pro,
.iPhone15,
.iPhone15Pro,
.iPhone16:
.iPhone16,
.iPhone16e:

return .screen6Dot1Inch
// MARK: 5.4
Expand Down
2 changes: 2 additions & 0 deletions Sources/Deviice/Model.swift
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,7 @@ public enum Model {
case iPhone16Plus
case iPhone16Pro
case iPhone16ProMax
case iPhone16e

// MARK: iPad
case iPad2
Expand Down Expand Up @@ -183,6 +184,7 @@ public extension Model {
case .iPhone16Plus: return "iPhone 16 Plus"
case .iPhone16Pro: return "iPhone 16 Pro"
case .iPhone16ProMax: return "iPhone 16 Pro Max"
case .iPhone16e: return "iPhone 16e"

// MARK: iPad
case .iPad2: return "iPad 2"
Expand Down