Skip to content

Commit

Permalink
Overdue update to the iPhone identifier list (#725)
Browse files Browse the repository at this point in the history
  • Loading branch information
scrappy authored Jun 2, 2024
1 parent 76e234a commit fa9b6e6
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions FreeAPS/Sources/Helpers/UIDevice+Extensions.swift
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ extension UIDevice {

func mapToDevice(identifier: String) -> String {
switch identifier {
case "iPhone10,1":
return "iPhone 8"
case "iPhone10,2":
return "iPhone 8 Plus"
case "iPhone10,4":
return "iPhone 8"
case "iPhone10,5":
Expand Down Expand Up @@ -59,6 +63,15 @@ extension UIDevice {
return "iPhone 14 Pro"
case "iPhone15,3":
return "iPhone 14 Pro Max"
case "iPhone15,4":
return "iPhone 15"
case "iPhone15,5":
return "iPhone 15 Plus"

case "iPhone16,1":
return "iPhone 15 Pro"
case "iPhone16,2":
return "iPhone 15 Pro Max"

default:
return identifier
Expand Down

0 comments on commit fa9b6e6

Please sign in to comment.