Protocol
ActivityBar
An
ActivityIndicatorType that renders an activity bar on a single line.protocol ActivityBar : ActivityIndicatorType
Overview
Title [======= ]
ActivityBars implement the renderActiveBar(tick:width:) method to customize the bar style.
See LoadingBar and ProgressBar implementations.
See ActivityIndicatorType for more information.
Topics
Instance Properties
var title: StringThe title to display when rendering thisActivityBar.
Instance Methods
func renderActiveBar(tick: UInt, width: Int) -> ConsoleTextCalled each time theActivityBarshould refresh its display.
Relationships
Inherits From
ActivityIndicatorTypeSwift.SendableSwift.SendableMetatype
Conforming Types
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.struct LoadingBarLoading-style implementation ofActivityBar.struct ProgressBarProgress-style implementation ofActivityBar.struct CustomActivityAn activity indicator with customizable frames and success and failure messages.