Skip to content

Initializer

init(frames:success:failure:)

Creates a new CustomActivityIndicator instance.
init(frames: [ConsoleText], success: String = "[Done]", failure: String = "[Failed]")

Parameters

frames

The text to loop over as the activity indicator runs.

success

The string to replace the indicator with when the operation succeeds. The default value is [Done].

failure

The string to replace the indicator with when the operation fails: The default value is [Failed].