How do you get a SwiftData Query to change its attributes / parameters interactively? In this lesson we'll show how you can use a Picker view in SwiftUI to send selections to a View, and have that View respond to the interaction by selectively initializing a Query with different .sort, ..order, and .filter / #Predicate parameters. We'll also learn to use _variableName to initialize a Swift Property Wrapper. Part of Prof. Gallaugher's Zero to Full Stack SwiftUI University course, which you can find, free, at bit.ly/prof-g-....
The video lesson just before this is at: • SwiftData! Updating a ...
The starter code for this lesson can be found at:
github.com/gal...
And you can find the shoutout Swifters I mentioned:
/ flowritescode
/ @stewartlynch
And StackOverflow Swifter: stackoverflow....
Hack on!
4 сен 2024