Initializer

init(style:)

Initializes and returns an activity-indicator object.

Declaration

Parameters

style

A constant that specifies the style of the object to be created. See UIActivityIndicatorView.Style for descriptions of the style constants.

Return Value

An initialized UIActivityIndicatorView object or nil if the object couldn’t be created.

Discussion

UIActivityIndicatorView sizes the returned instance according to the specified style. You can set and retrieve the style of a activity indicator through the style property.

See Also

Initializing an Activity Indicator