UIActivityIndicatorView
A view that shows that a task is in progress.
Declaration
@MainActor class UIActivityIndicatorViewOverview
You control when an activity indicator animates by calling the startAnimating() and stopAnimating() methods. To automatically hide the activity indicator when animation stops, set the hidesWhenStopped property to true.
You can set the color of the activity indicator by using the color property.