Skip to content

Commit 4767d37

Browse files
committed
Support iPhone 16 generation
1 parent 4d2da50 commit 4767d37

File tree

4 files changed

+14
-2
lines changed

4 files changed

+14
-2
lines changed

FTLinearActivityIndicator.podspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Pod::Spec.new do |s|
22
s.name = 'FTLinearActivityIndicator'
3-
s.version = '1.7'
3+
s.version = '1.8'
44
s.summary = 'Add the missing network activity indicator on newer iPhones'
55

66
s.description = <<-DESC

FTLinearActivityIndicator/Classes/UIApplication+LinearNetworkActivityIndicator.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ extension UIApplication {
9595
.iPhone15Plus: (80, 42),
9696
.iPhone15Pro: (72, 34),
9797
.iPhone15ProMax: (80, 42),
98+
.iPhone16: (84, 36),
99+
.iPhone16Plus: (96, 42),
100+
.iPhone16Pro: (86, 38),
101+
.iPhone16ProMax: (96, 42),
98102
]
99103
let modelName = UIDevice.current.ftModelName
100104
let config = modelName.flatMap { layout[$0] } ?? (74, 44)

FTLinearActivityIndicator/Classes/UIDevice+Extension.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,10 @@ public enum ModelName: String {
3333
case iPhone15Plus = "iPhone15,5"
3434
case iPhone15Pro = "iPhone16,1"
3535
case iPhone15ProMax = "iPhone16,2"
36+
case iPhone16 = "iPhone17,3"
37+
case iPhone16Plus = "iPhone17,4"
38+
case iPhone16Pro = "iPhone17,1"
39+
case iPhone16ProMax = "iPhone17,2"
3640
}
3741

3842
public extension UIDevice {

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,10 @@ regular status bar items on the following devices:
3434
- iPhone 15 Plus
3535
- iPhone 15 Pro
3636
- iPhone 15 Pro Max
37+
- iPhone 16
38+
- iPhone 16 Plus
39+
- iPhone 16 Pro
40+
- iPhone 16 Pro Max
3741

3842
Since a circular indicator wouldn't fit, a rectangular [KITT scanner](https://giphy.com/gifs/80s-nbc-knight-rider-Bo2WsocASVBm0)-like indicator with a gradient is shown. The indicator UI can be used standalone or as a "fix" for the iOS network activity indicator (using the existing API).
3943

@@ -93,4 +97,4 @@ FTLinearActivityIndicator is available under the [CC-BY-SA 4.0 license](http://c
9397
If you need a different license without attribution requirement, please contact me and we can work something out.
9498

9599
## Sponsors wanted
96-
If you would like to support my Open Source work, consider joining me as a [sponsor](https://github.com/sponsors/futuretap)! 💪️ Your sponsorship enables me to spend more time on this and other community projects. Thank you!
100+
If you would like to support my Open Source work, consider joining me as a [sponsor](https://github.com/sponsors/futuretap)! 💪️ Your sponsorship enables me to spend more time on this and other community projects. Thank you!

0 commit comments

Comments
 (0)