Рет қаралды 37,879
In this SwiftUI video, you'll implement the users favorites list using a model and binding it to the view so that the views automatically update when the data in the model changes.
𝗩𝗶𝗱𝗲𝗼 𝗧𝗶𝗺𝗲 𝗦𝘁𝗮𝗺𝗽𝘀:
00:00 Intro
00:46 Landmark Resume
01:42 Handling User Input
5:00 Show if isFavorite
12:14 Implementing the Toggle
16:45 Implementing the Model
44:58 Outro
I'm following and learning from Apple’s own SwiftUI tutorials and I highly recommend that you give them a read as well:
⚡ developer.apple.com/tutorials...
I'll be publishing more SwiftUI content and tutorials in the coming days so make sure you're subscribed and you won’t miss a beat:
⚡kzfaq.info...
SwiftUI is a new declarative framework to build user interfaces for apps across all of Apple’s platforms including iOS and the new iPadOS.
I’m super excited about Swift UI because it addresses the biggest concern I had with teaching programmatic UIs to beginners: that they would get lost and get discouraged.
SwiftUI is both intuitive and easy to grasp and it offers the maintainability and flexibility of a UI built with code. I’m going to start adopting it into my beginner material and I think you guys are going to really like it!
#swiftui #codewithchris