SwiftUI Quick Tip: Apply Text Transformations

Gabriel Theodoropoulos
2 min readNov 16, 2020
English colored physical letters made of textile thrown around randomly, with the title text transformation in SwiftUI overlapping at the bottom left side

Have you ever wondered how to apply text transformations in SwiftUI, such as small caps, lowercase small caps, or uppercase small caps? It’s actually pretty easy, as all available transformations are available and suggested by Xcode when specifying the font.

Consider the following example that applies the largeTitle font to text:

Text("Hello World!!!")…

--

--

Gabriel Theodoropoulos

An iOS & macOS app maker writing code in Swift. Author of countless programming tutorials. Content creator. https://serialcoder.dev