Creating user interfaces in SwiftUI isn’t just about composing views. It also involves modifying and setting up various state properties. These both combine to create apps that look good and behave as the use expects them to.
Both modifiers and state variables are two very different topics in SwiftUI. Modifiers allow you to customize your views such as increasing text size or adding padding. On the other hand, state properties are variables that trigger an app to refresh when they are modified.
SwiftUI also provides buttons. These buttons allow you to run code when the user taps it. Buttons work will with both modifiers and properties and provide an easy way to add interactivity to your app.
You’ll learn about all of these concepts and in the process, you will learn to:
Describe how to modify view such as a Text() or Image().
Explain the purpose of @State variables.
Identify how to add buttons to a layout.
See forum comments
This content was released on Apr 24 2025. The official support period is 6-months
from this date.
Gain an overview of how modifiers and state variables improve your app.
Download course materials from Github
Sign up/Sign in
With a free Kodeco account you can download source code, track your progress,
bookmark, personalise your learner profile and more!
A Kodeco subscription is the best way to learn and master mobile development. Learn iOS, Swift, Android, Kotlin, Flutter and Dart development and unlock our massive catalog of 50+ books and 4,000+ videos.