Back to Blog

SwiftUI State Management in 2 hours

SwiftUI is a declarative framework that relies on state management to keep track of changing information and how to update the user interface accordingly. It ensures that when your data changes, the on-screen elements, like buttons or text, also change to reflect the new information.

In this course, you will learn how to manage the state of your SwiftUI applications. This series assumes that you already have a basic knowledge of how SwiftUI works. If you've never used SwiftUI before, start here instead.

 

How this course works 

Below is a selection of 6 videos that represent the core state management in SwiftUI. These videos have been selected from The SwiftUI Bootcamp, which has 68 total videos. We highly recommend watching the full course, which you can view here.

 

We will begin with some simple Property Wrappers that can be used to hold the state of our application. These will become the cornerstone of the conditional logic in your application!

 

Let's jump in... 

 

 

Next we'll look at how to add Observable Objects to our views. The code here will be slightly different from the previous videos, however, the purpose is still the same - to manage the state of the data in our application. The main difference is that the state is managed by an object that that is not directly part of the view.

 

 

 

 

Here's two more state-based Property Wrappers that will be good to know for your next app...

 

 

 

 

Nice! Now you know State Management in SwiftUI! 

 

As a reminder, this was the abbreviated version of the course. If you're serious about SwiftUI, we highly recommend watching the full course here.

 

I hope this FREE course was worth your time and helped you on your journey to becoming an expert iOS developer! If you enjoyed it, please don't forget to follow us on YouTube!

 

YouTube: https://www.youtube.com/c/SwiftfulThinking

Join our Discord: https://discord.gg/Fm4abM2DNh

View source code: https://github.com/swiftfulthinking

Support The Channel: https://www.buymeacoffee.com/nicksarno

 

 

Join over 2,000 iOS Engineers in our Discord! We are a community focused on helping each other learn Swift and build amazing iOS applications.

Join Discord

Stay updated!

Add your email to get updates on new content & discounts to upcoming courses!