Skip to content

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

Instance Properties

  • let failure: String
    The text to be output with the .error style 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 of 0...(frames.count - 1).
  • let success: String
    The text to be output with the .success style if the indicator is succeeded.

Instance Methods

Relationships

Conforms To