Initializer
init(title:titleAfterIndicator:frames:success:failure:color:)
Creates a new
CustomActivity instance.init(title: String, titleAfterIndicator: Bool = true, frames: [String], success: String = "[Done]", failure: String = "[Failed]", color: ConsoleColor = .cyan)
Parameters
titleThe title of the activity indicator.
titleAfterIndicatorIf
true, the title of the activity indicator will be printed after the indicator itself.framesThe strings to loop over as the activity indicator runs.
successThe string to replace the indicator with when the operation succeeds. The default value is
[Done].failureThe string to replace the indicator with when the operation fails: The default value is
[Failed].colorThe color of text when the frames are displayed. The default value is
.cyan.