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...) -> String
Parameters
styles
What styles to be apply to this string.
Return Value
The string with style escape codes.