Structure
CustomActivity
An activity indicator with customizable frames and success and failure messages.
struct CustomActivity
Overview
See Console.activity(frames:success:failure:color:) to make one.
Topics
Initializers
init(frames: [ConsoleText], success: String, failure: String)Creates a newCustomActivityIndicatorinstance.init(frames: [String], success: String, failure: String, color: ConsoleColor)Creates a newCustomerActivityIndicatorinstance.
Instance Properties
let failure: StringThe text to be output with the.errorstyle if the indicator is failed.let frames: [ConsoleText]The text that will be output on the indicator ticks, each frame corresponding to a single tick in a range of0...(frames.count - 1).let success: StringThe text to be output with the.successstyle if the indicator is succeeded.
Instance Methods
func outputActivityIndicator(to: any Console, state: ActivityIndicatorState)SeeActivityIndicatorType.outputActivityIndicator(to:state:).
Relationships
Conforms To
ActivityIndicatorTypeSwift.SendableSwift.SendableMetatype