filmov
tv
SwiftUI Tutorial: Observing Changes in State - Demystifying Property Wrappers Part 2
![preview_player](https://i.ytimg.com/vi/YGDRFMjFg1A/maxresdefault.jpg)
Показать описание
SwiftUI Tutorial: Observing Changes in State - Demystifying Property Wrappers Part 2
This series is about pulling back the curtain on property wrappers to explore what's really going on with them. By the end of it, you'll feel confident enough to explore creating your own wrappers just for the fun of it!
In this episode we'll be looking at working with the State property wrapper to look at listening to changes in the state it holds.
Swift-evolution proposal for property wrappers:
Tutorials on state management with State and Binding (as well as others):
================
PureSwiftUI is a free Swift Package that includes a multitude of useful extensions and properties to make your life easier with SwiftUI resulting in cleaner code that takes less time to write.
It's a huge time-saver so I do encourage you to check it out.
You can get PureSwiftUI here:
Check out PureSwiftUITools for additional SwiftUI utility type things:
If you want to ask me a question or follow me for updates, you can do so on Twitter:
FAQs:
Q: What are the code callouts I sometimes see in the code?:
A: I code in SwiftUI using the PureSwiftUI framework since I created it to make code more concise and easier to read. However, I understand that not everyone wants to install a swift package (although, you'd be mad not to ;o)) so unless otherwise stated, the popups will detail the native SwiftUI equivalent of the code in question.
Q: What's that theme you're using?
A: It’s a modified version of MoodNight v2. If you like it, you can download the theme here:
This series is about pulling back the curtain on property wrappers to explore what's really going on with them. By the end of it, you'll feel confident enough to explore creating your own wrappers just for the fun of it!
In this episode we'll be looking at working with the State property wrapper to look at listening to changes in the state it holds.
Swift-evolution proposal for property wrappers:
Tutorials on state management with State and Binding (as well as others):
================
PureSwiftUI is a free Swift Package that includes a multitude of useful extensions and properties to make your life easier with SwiftUI resulting in cleaner code that takes less time to write.
It's a huge time-saver so I do encourage you to check it out.
You can get PureSwiftUI here:
Check out PureSwiftUITools for additional SwiftUI utility type things:
If you want to ask me a question or follow me for updates, you can do so on Twitter:
FAQs:
Q: What are the code callouts I sometimes see in the code?:
A: I code in SwiftUI using the PureSwiftUI framework since I created it to make code more concise and easier to read. However, I understand that not everyone wants to install a swift package (although, you'd be mad not to ;o)) so unless otherwise stated, the popups will detail the native SwiftUI equivalent of the code in question.
Q: What's that theme you're using?
A: It’s a modified version of MoodNight v2. If you like it, you can download the theme here:
Комментарии