TextCase
public enum TextCase : String, Encodable
A way to capitalize text content.
-
All characters are uppercase.
Declaration
Swift
case uppercase = "UPPERCASE"
-
All characters are lowercase.
Declaration
Swift
case lowercase = "lowercase"
-
Every word begins with a capital letter.
Declaration
Swift
case capitalizeEveryWord = "Capitalize Every Word"
-
Every word begins with a capital letter as defined by title case.
Declaration
Swift
case capitalizeWithTitleCase = "Capitalize with Title Case"
-
The first word begins with a capital letter.
Declaration
Swift
case capitalizeWithSentenceCase = "Capitalize with sentence case"
-
Characters alternate between uppercase and lowercase.
Declaration
Swift
case capitalizeWithAlternatingCase = "cApItAlIzE wItH aLtErNaTiNg cAsE"