CreationKit Documentation

Class Network​Activity​Indicator

public final class NetworkActivityIndicator: ActivityIndicator  

A replacement for the systems deprecated network activity indicator. Ensure to call NetworkActivityIndicator.configure() when your app starts to properly track status bar tint changes.

Instead of using UIApplication.shared.isNetworkActivityIndicatorVisible, you should use NetworkActivityIndicator.isVisible to display/hide the indicator.

NetworkActivityIndicator NetworkActivityIndicator ActivityIndicator ActivityIndicator NetworkActivityIndicator->ActivityIndicator

Superclass

ActivityIndicator

ActivityIndicators express an unspecified wait time or display the length of a process.

Properties

is​Visible

public static var isVisible: Bool = false  

Set to true to show the indicator, otherwise false to hide it.

Specify true if the app should show network activity and false if it should not. The default value is false. An indicator in the status bar shows network activity. The app may explicitly hide or show this indicator.

Methods

configure()

public static func configure()  

Call when your app starts to let the NetworkActivityIndicator track the status bar tint color changes.