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:titleAfterIndicator:frames:success:failure:)Creates a newCustomActivityinstance.init(title:titleAfterIndicator:frames:success:failure:color:)Creates a newCustomActivityinstance.
Instance Properties
failureThe text to be output with theActivityIndicatorState.failurestyle if the indicator is failed.framesThe text that will be output on the indicator ticks, each frame corresponding to a single tick in a range of0...(frames.count - 1).successThe text to be output with theActivityIndicatorState.successstyle if the indicator is succeeded.titleThe title of the activity indicator.titleAfterIndicatorIftrue, 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
ActivityIndicatorAn instance of aActivityIndicatorTypethat can be started, failed, and succeeded.ActivityIndicatorTypeActivityIndicatorTypes are responsible for drawing / rendering the currentActivityIndicatorStateto theConsole.ActivityIndicatorStatePossible states to draw / render andActivityIndicatorType.ActivityBarAnActivityIndicatorTypethat renders an activity bar on a single line.LoadingBarLoading-style implementation ofActivityBar.ProgressBarProgress-style implementation ofActivityBar.