Skip to content

Commit 26ffff8

Browse files
committed
Added Spring 2025 iOS devices support
1 parent 7512dd0 commit 26ffff8

File tree

4 files changed

+15
-5
lines changed

4 files changed

+15
-5
lines changed

display_metrics_ios/CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 1.0.3
2+
* Added Spring 2025 iOS devices support:
3+
* iPhone 16e
4+
* iPad Air M3 (7th gen) 11", 13"
5+
* iPad A16 (11th gen) 11"
6+
17
## 1.0.2
28
* Updated documentation
39

display_metrics_ios/ios/Classes/UIScreenExtension.swift

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,8 @@ public extension UIScreen {
7373
case "iPhone15,2": fallthrough // iPhone 14 Pro
7474
case "iPhone15,4": fallthrough // iPhone 15
7575
case "iPhone16,1": fallthrough // iPhone 15 Pro
76-
case "iPhone17,3": // iPhone 16
76+
case "iPhone17,3": fallthrough // iPhone 16
77+
case "iPhone17,5": // iPhone 16e
7778
return 6.1
7879

7980
case "iPhone17,1": // iPhone 16 Pro
@@ -132,11 +133,14 @@ public extension UIScreen {
132133
case "iPad13,4", "iPad13,5", "iPad13,6", "iPad13,7": fallthrough // iPad Pro (11 inch, 3rd generation)
133134
case "iPad14,3", "iPad14,4": fallthrough // iPad Pro (11 inch, 4th generation)
134135
case "iPad14,8", "iPad14,9": fallthrough // iPad Air (11 inch, 6th generation)
135-
case "iPad16,3", "iPad16,4": // iPad Pro (11 inch, 7th generation)
136+
case "iPad16,3", "iPad16,4": fallthrough // iPad Pro (11 inch, 7th generation)
137+
case "iPad15,3", "iPad15,4": fallthrough // iPad Air (11 inch, 7th generation)
138+
case "iPad15,7", "iPad15,8": // iPad 11th generation
136139
return 11.0
137140

138141
case "iPad14,10", "iPad14,11": fallthrough // iPad Air (13 inch, 6th generation)
139-
case "iPad16,5", "iPad16,6": // iPad Pro (13 inch, 7th generation)
142+
case "iPad16,5", "iPad16,6": fallthrough // iPad Pro (13 inch, 7th generation)
143+
case "iPad15,5", "iPad15,6": // iPad Air (13 inch, 7th generation)
140144
return 13.0
141145

142146
case "iPad6,7", "iPad6,8": fallthrough // iPad Pro (12.9 inch)

display_metrics_ios/ios/display_metrics_ios.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#
55
Pod::Spec.new do |s|
66
s.name = 'display_metrics_ios'
7-
s.version = '1.0.0'
7+
s.version = '1.0.3'
88
s.summary = 'Flutter plugin to retrieve device display metrics (resolution, size, PPI, diagonal). Convert inches & mm to Flutter logical pixels.'
99
s.description = <<-DESC
1010
A new Flutter plugin project.

display_metrics_ios/pubspec.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name: display_metrics_ios
22
description: iOS platform implementation of display_metrics plugin. This package will be automatically included in your app when you use display_metrics in iOS project
33
homepage: https://github.com/nukeolay/display_metrics/tree/main/display_metrics_ios
4-
version: 1.0.2
4+
version: 1.0.3
55

66
environment:
77
sdk: '>=3.1.2 <4.0.0'

0 commit comments

Comments
 (0)