Skip to content

Commit a7770c9

Browse files
committed
Support visionOS
1 parent 8a47161 commit a7770c9

File tree

13 files changed

+111
-335
lines changed

13 files changed

+111
-335
lines changed

Example/FTLinearActivityIndicator.xcodeproj/project.pbxproj

Lines changed: 60 additions & 233 deletions
Large diffs are not rendered by default.

Example/FTLinearActivityIndicator.xcworkspace/contents.xcworkspacedata

Lines changed: 0 additions & 10 deletions
This file was deleted.

Example/FTLinearActivityIndicator/ViewController.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ class ViewController: UIViewController {
2727
}
2828

2929
@IBAction func toggle(_ sender: Any) {
30+
#if (swift(<5.9) || !os(visionOS))
3031
UIApplication.shared.isNetworkActivityIndicatorVisible = !UIApplication.shared.isNetworkActivityIndicatorVisible
32+
#endif
3133
}
3234

3335
@IBAction func toggleStandAlone(_ sender: Any) {
@@ -42,7 +44,9 @@ class ViewController: UIViewController {
4244

4345
@IBAction func toggleStatusBar(_sender: Any) {
4446
statusBarHidden = !statusBarHidden
47+
#if (swift(<5.9) || !os(visionOS))
4548
setNeedsStatusBarAppearanceUpdate()
49+
#endif
4650
}
4751

4852
@IBAction func showCamera() {

Example/Podfile.lock

Lines changed: 0 additions & 16 deletions
This file was deleted.

Example/Tests/Info.plist

Lines changed: 0 additions & 24 deletions
This file was deleted.

Example/Tests/Tests.swift

Lines changed: 0 additions & 29 deletions
This file was deleted.

FTLinearActivityIndicator.podspec

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,25 @@
11
Pod::Spec.new do |s|
22
s.name = 'FTLinearActivityIndicator'
3-
s.version = '1.5.2'
4-
s.summary = 'Add the missing network activity indicator on iPhone with notch'
3+
s.version = '1.6'
4+
s.summary = 'Add the missing network activity indicator on newer iPhones'
55

66
s.description = <<-DESC
7-
iPhones with a notch such as X, XS, XR, 11 (Pro), 12-13 (mini, Pro) don't display the
8-
network activity indicator anymore. This pod brings it back by placing an activity
9-
indicator in the upper right of the screen on top of the regular status bar items.
10-
Since a circular indicator wouldn't fit, a rectangular "KITT scanner" like indicator
11-
with a gradient is shown. The indicator UI can be used standalone or as a "fix" for
12-
the iOS network activity indicator (using the existing API).
7+
iPhones with a notch such as X, XS, XR, 11 (Pro), 12-13 (mini, Pro) or Dynamic Island
8+
such as 14 Pro don't display the network activity indicator anymore. This pod brings it back
9+
by placing an activity indicator in the upper right of the screen on top of the regular
10+
status bar items. Since a circular indicator wouldn't fit, a rectangular "KITT scanner"
11+
like indicator with a gradient is shown. The indicator UI can be used standalone or as a
12+
"fix" for the iOS network activity indicator (using the existing API).
1313
DESC
1414

1515
s.homepage = 'https://github.com/futuretap/FTLinearActivityIndicator'
1616
s.screenshots = 'https://github.com/futuretap/FTLinearActivityIndicator/raw/master/screenshot.gif'
1717
s.license = { :type => 'CC-BY-SA 4.0', :file => 'LICENSE' }
1818
s.author = 'Ortwin Gentz'
1919
s.source = { :git => 'https://github.com/futuretap/FTLinearActivityIndicator.git', :tag => s.version.to_s }
20-
s.social_media_url = 'https://twitter.com/ortwingentz'
20+
s.social_media_url = 'https://mastodon.cloud/@ortwingentz'
2121

22-
s.ios.deployment_target = '9.0'
22+
s.ios.deployment_target = '11.0'
2323
s.swift_version = '5.0'
2424

2525
s.source_files = 'FTLinearActivityIndicator/Classes/**/*'

FTLinearActivityIndicator.xcworkspace/contents.xcworkspacedata

Lines changed: 7 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Example/FTLinearActivityIndicator.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist renamed to FTLinearActivityIndicator.xcworkspace/xcshareddata/IDEWorkspaceChecks.plist

File renamed without changes.
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3+
<plist version="1.0">
4+
<dict/>
5+
</plist>

0 commit comments

Comments
 (0)