Your First iOS App: Getting Started with SwiftUI

Jun 16 2026 · Swift 6.3, iOS 26, Xcode 26

Lesson 05: SwiftUI View Modifiers

SwiftUI View Modifiers

Episode complete

Play next episode

Next

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Heads up... You’re accessing parts of this content for free, with some sections shown as obfuscated text.

Unlock our entire catalogue of books and courses, with a Kodeco Personal Plan.

Unlock now

Update Notes:

Text("100")
   .opacity(0.5)
Text("100")
  .opacity(0.5)
  .border(Color.red, width: 2)
Text("100")
    .border(Color.red, width: 2)
    .opacity(0.5)
.bold()
.bold()
.multilineTextAlignment(.leading)
.multilineTextAlignment(.center)
.bold()
.multilineTextAlignment(.center)
.linespacing(4.0)
.font(.title)

Dynamic Type

Now you’ll notice here that rather than setting this to a hard-coded font size, like 12, 14, et cetera it’s asked us to choose a preset font size such as title.

.font(.footnote)

Preview Dynamic Type Variants

One of the nice things about SwiftUI is you can actually get a preview of what your app would look like if the user selects a different size for the dynamic type size.

Letter Spacing

OK, it’s looking pretty close to Luke’s design at this point, but there’s something that doesn’t look quite right, and it’s pretty subtle. Can you notice what it is?

.kerning(2.0)
See forum comments
Cinema mode Download course materials from Github
Previous: SwiftUI Views Next: Objects, Data & Methods