Recently, I was wondering why Where To? on iPhone X didn’t show the activity indicator in the status bar while it was fetching places from the network. I discovered that iPhone X actually doesn’t display the system network activity indicator. Apple writes in the Human Interface Guidelines:
Screenshot FTLinearActivityIndicator

On all devices except iPhone X, a network activity indicator spins in the status bar at the top of the screen as networking occurs.

So the iPhone X simply doesn’t show the network activity indicator at all. While I consider this a bug and submitted a Radar (🐞 UIActivityIndicatorView should be shown on iPhone X) for it, I needed a solution.

I remembered that in an early beta of the iPhone X Simulator, I saw a K.I.T.T. scanner-style indicator with a linear gradient that was placed above or below the status bar items:


Screenshot by @twostraws

So I decided to implement this kind of indicator. It’s placed in the right “ear”, above the status bar icons. It’s convenient to use by simply “fixing” the existing network activity indicator on iPhone X. So apps using the network activity indicator continue to work as usual but also display the indicator on iPhone X. In addition, it can also be used as a standalone indicator view and tinted with a custom color.

The indicator is available as open source on GitHub and as a CocoaPod. Feel free to use it in your own apps!

The next Where To? update will of course use this as well to fix the missing activity indicator on iPhone X.

Update 8.2.2018: Where To? 10.8.1 includes this.

Links to this article

Leave a Comment

Your email address will not be published. Required fields are marked *

Subscribe to the FutureTap Newsletter

View previous newsletters
Consent

We will use your name and email address to provide news and offers about our apps. We will treat your information with respect. By clicking below, you agree that we may process your information in accordance with our privacy policy.