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.

Leave a comment