For activities that take more than a few seconds, loading icons can be helpful to tell your app users that an activity is happening in the background, such as retrieving or uploading data
The color of the loading icon
The loading icon should be displayed when the app is performing an activity in the background and hidden when it is not. One way to show and hide the icon is to use the
visible property of the component.