Skip to content

Instance Method

output(_:newLine:)

Outputs serialized ConsoleText to the Console.
func output(_ text: ConsoleText, newLine: Bool)

Parameters

text

ConsoleText to serialize and print.

newLine

If true, the next output will be on a new line.

Discussion

console.output("Hello, " + "world!".consoleText(color: .green))