Latest 1.0.3
Homepage https://github.com/futuretap/FTLinearActivityIndicator
License CC-BY-SA 4.0
Platforms ios 8.0
Frameworks UIKit

Version
License
Platform
Twitter

iPhone X does not display the network activity indicator anymore. This framework brings it
back by placing an activity indicator in the upper right of the screen on top of the
regular status bar items.

Since a circular indicator wouldn’t fit, a rectangular KITT scanner-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).

Integration

As a fix for the system network activity indicator

In your app delegate’s didFinishLaunching method, just call

UIApplication.configureLinearNetworkActivityIndicatorIfNeeded()

Then, use the standard network activity indicator as usual.

As a standalone view

Include a FTLinearActivityIndicator view in your storyboard or instantiate it from code. The class supports the following methods and properties, using a similar API as the iOS UIActivityIndicatorView:

  • startAnimating()
  • stopAnimating()
  • isAnimating: Bool
  • hidesWhenStopped: Bool

tintColor is supported to colorize the indicator gradient.

Example

To open an example project, just call pod try FTLinearActivityIndicator on the command line.

Requirements

Written in Swift 4. Should run under any iOS (obviously, the iPhone X requires iOS 11 or higher).

Installation

FTLinearActivityIndicator is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'FTLinearActivityIndicator'

Author

Ortwin Gentz, FutureTap GmbH, Twitter: @ortwingentz

License

FTLinearActivityIndicator is available under the CC-BY-SA 4.0 license. You may copy and redistribute, adapt and build upon the framework for any purpose, even commercially, as long as you give credit to me in the About menu or a similar place in the app.

Latest podspec

{
    "name": "FTLinearActivityIndicator",
    "version": "1.0.3",
    "summary": "Add the missing network activity indicator on iPhone X",
    "description": "iPhone X does not display the network activity indicator anymore. This pod brings itnback by placing an activity indicator in the upper left of the screen on top of thenregular status bar items. Since a circular indicator wouldn't fit, a rectangular n"KITT scanner" like indicator with a gradient is shown. The indicator UI can benused standalone or as a "fix" for the iOS network activity indicator (using thenexisting API).",
    "homepage": "https://github.com/futuretap/FTLinearActivityIndicator",
    "screenshots": "https://github.com/futuretap/FTLinearActivityIndicator/raw/master/screenshot.gif",
    "license": {
        "type": "CC-BY-SA 4.0",
        "file": "LICENSE"
    },
    "authors": "Ortwin Gentz",
    "source": {
        "git": "https://github.com/futuretap/FTLinearActivityIndicator.git",
        "tag": "1.0.3"
    },
    "social_media_url": "https://twitter.com/ortwingentz",
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "FTLinearActivityIndicator/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This