Structure
CustomActivity
An activity indicator with customizable frames and success and failure messages.
struct CustomActivity
Overview
See customActivity(title:titleAfterIndicator:frames:success:failure:color:) to make one.
Topics
Initializers
init(title: String, titleAfterIndicator: Bool, frames: [ConsoleText], success: String, failure: String)Creates a newCustomActivityinstance.init(title: String, titleAfterIndicator: Bool, frames: [String], success: String, failure: String, color: ConsoleColor)Creates a newCustomActivityinstance.
Instance Properties
let failure: StringThe text to be output with theActivityIndicatorState.failurestyle 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 theActivityIndicatorState.successstyle if the indicator is succeeded.let title: StringThe title of the activity indicator.let titleAfterIndicator: BoolIftrue, the title of the activity indicator will be printed after the indicator itself. Iffalse, the title will be printed before the indicator.
Instance Methods
Relationships
Conforms To
ActivityIndicatorTypeSwift.SendableSwift.SendableMetatype
See Also
Activity
class ActivityIndicatorAn instance of aActivityIndicatorTypethat can be started, failed, and succeeded.protocol ActivityIndicatorTypeActivityIndicatorTypes are responsible for drawing / rendering the currentActivityIndicatorStateto theConsole.enum ActivityIndicatorStatePossible states to draw / render andActivityIndicatorType.protocol ActivityBarAnActivityIndicatorTypethat renders an activity bar on a single line.struct LoadingBarLoading-style implementation ofActivityBar.struct ProgressBarProgress-style implementation ofActivityBar.