Structure
ConsoleStyle
Representation of a style for outputting to a Console in different colors with differing attributes. A few suggested default styles are provided.
struct ConsoleStyle
Topics
Initializers
init(color: ConsoleColor?, background: ConsoleColor?, isBold: Bool)Creates a newConsoleStyle.
Instance Properties
let background: ConsoleColor?Optional background color. Ifnilbackground is plain.let color: ConsoleColor?Optional text color. Ifnil, text is plain.let isBold: BoolIftrue, text is bold.
Type Properties
static var error: ConsoleStyleRed text with no background.static var info: ConsoleStyleLight blue text with no background.static var plain: ConsoleStylePlain text with no color or background.static var success: ConsoleStyleGreen text with no background.static var warning: ConsoleStyleYellow text with no background.
Relationships
Conforms To
Swift.SendableSwift.SendableMetatype