init(style:)
Creates an activity indicator.
Declaration
init(style: UIActivityIndicatorView.Style)Parameters
- style:
A constant that specifies the style of the object to be created. See Style Swift.enum for descriptions of the style constants.
Return Value
An initialized UIActivityIndicatorView object.
Discussion
UIActivityIndicatorView sizes the returned instance according to the specified style. You can set and retrieve the style of an activity indicator through the style property.