StringProtocol
public extension StringProtocol
Add support for strings style with StringStyle constants.
-
Creates a string which is enriched by specified text styles.
Declaration
Swift
func styled(_ styles: CLI.StringStyle...) -> StringParameters
stylesWhat styles to be apply to this string.
Return Value
The string with style escape codes.
View on GitHub
StringProtocol Extension Reference