Structure
ConsoleText.StringInterpolation
The type each segment of a string literal containing interpolations should be appended to.
struct StringInterpolation
Overview
The StringLiteralType of an interpolation type must match the StringLiteralType of the conforming type.
Topics
Initializers
init(literalCapacity: Int, interpolationCount: Int)Creates an empty instance ready to be filled with string literal content.
Instance Properties
Instance Methods
func appendInterpolation(String, color: ConsoleColor?, background: ConsoleColor?, isBold: Bool)func appendInterpolation(String, style: ConsoleStyle)func appendLiteral(String)Appends a literal segment to the interpolation.
Relationships
Conforms To
Swift.StringInterpolationProtocol