SwiftUI provides lots of ways to create interactive apps. There are lots of views out there such as buttons, text fields, sliders, and more. You can also create your own views to provide new types of views that will impress your users.
SwiftUI also provides ways to modify views as well. In just a few lines of code, you can adjust layouts or even add additional interactivity by way of alerts and action sheets.
All these features work by way of state. State represents all the data in your app and when specific data changes, the user interfaces will update with those changes.
As you build additional user interfaces, you’ll often make branching choices in your UI based on your current app state. For instance, you may employ a button to login to your app or display the username if they user already is logged in.
All this takes time and practice. Just be patient with yourself and work through the difficulty and soon, you’ll be writing apps like a pro.
See forum comments
This content was released on Apr 24 2025. The official support period is 6-months
from this date.
Read some conclusive thoughts about interactivity
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!
Previous: Understanding State Updates
Next: Quiz: Adding Interactivity
All videos. All books.
One low price.
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.