Тёмный
No video :(

Interactive @Query in SwiftData - Change Query Properties with a Picker (ToDo List App) 

Prof. John Gallaugher
Подписаться 8 тыс.
Просмотров 3,8 тыс.
50% 1

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

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 16   
@MarvelousLXVII
@MarvelousLXVII 10 месяцев назад
I had to watch this a few times but officially on 10-16-2023 at 4:45pm, it clicked with me lol! Thank you for doing this video.
@profgallaugher
@profgallaugher 10 месяцев назад
So glad you enjoyed this! More to come as I update the playlist so stay tuned. Cheers!
@m3zish
@m3zish Год назад
Thanks for the information. I might need that kind of picker for my app, it's great explanation. Not that I doubt it will work, but would have been nice to see in the Not Done tab, you clicking on any of the items to see it disappear from the list dynamically 😁
@andrejkling3886
@andrejkling3886 Год назад
Thank you John… always excellent explanation 🎉
@profgallaugher
@profgallaugher Год назад
You are very welcome
@wilburwongdev
@wilburwongdev 8 месяцев назад
love the enthusiasm!
@user-lz6dq6oi1d
@user-lz6dq6oi1d Год назад
Thanks for the intro, very helpful. How can I get the picker below the navigation title? Your insight very much appreciated!
@MarvelousLXVII
@MarvelousLXVII 10 месяцев назад
Thanks!
@funhurtsmylungs1056
@funhurtsmylungs1056 10 месяцев назад
I'm new to SwiftUI development and have been messing about with a bunch of tutorials. I'm not able to find an answer to this and my google-foo is subpar. But how can you use swiftData with MVVM? Could you make a video showing how to split code from the view and passing the data.
Далее
Concurrency of SwiftData, by Donny Wals (English)
31:08
Паук
01:01
Просмотров 2,4 млн
Почему-то хочется плакать
00:17
Просмотров 483 тыс.
🫢 #tiktok #elsarca
00:11
Просмотров 3,7 млн
SwiftData Basics in 15 minutes
15:18
Просмотров 44 тыс.
Fetch Data from JSON API into SwiftData Database
32:27
Просмотров 2,3 тыс.
I've been using Redis wrong this whole time...
20:53
Просмотров 356 тыс.
What is JSON - JSON Parsing in Swift
24:15
Просмотров 73 тыс.
How to use SwiftUI Table on macOS and iOS
35:52
Просмотров 7 тыс.
Паук
01:01
Просмотров 2,4 млн