Conclusion

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

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

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

Unlock now

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
Download course materials from Github
Previous: Understanding State Updates Next: Quiz: Adding Interactivity