0Pricing
SwiftUI Academy · Lesson

Introducing View Modifiers

Chain modifiers to change appearance and behavior.

What Is a Modifier?

A view modifier tweaks how a view looks or behaves. You attach one with a dot right after the view. 🎨

Text("Styled")
    .font(.title)

Modifiers Return a New View

Each modifier wraps the view and returns a new view. The original is never changed; you always get a styled copy back.

All lessons in this course

  1. What Is a View?
  2. Displaying Text on Screen
  3. Introducing View Modifiers
  4. Reading the View Hierarchy
← Back to SwiftUI Academy