Sorting and Filtering SwiftUI Data
This video was sponsored by Brilliant.
To try everything Brilliant has to offer—free—for a full 30 days, visit https://brilliant.org/StewartLynch . The first 200 of you will get 20% off Brilliant’s annual premium subscription.
In this video you learn how to deal with enums in SwiftData, create dynamic sorts using SortDescriptors and how to use the Predicate macro to filter your data.
If you want to support my work, you can buy me a coffee :)
https://ko-fi.com/stewartlynch
Table of Contents:
0:00 Introduction
1:11 Enums in SwiftData
6:46 Dynamic Query Sorting
13:15 Dynamic Query Filtering
Starter Project Files:
https://github.com/StewartLynch/MyBoo...
Completed Project:
https://github.com/StewartLynch/MyBoo...
All videos in this section
SwiftData: CRUD operations
• 1. SwiftData CRUD Operations
SwiftData: Containers and Mock Data
• 2. SwiftData Containers and Preview Data
SwiftData: Dynamic sorting and filtering
• 3. SwiftData Dynamic Sorts and Filters
Recommended Resources:
BigMountain Studio Books
SwiftUI Views Mastery
https://www.bigmountainstudio.com/vie...
SwiftUI 5 Book Bundle
https://www.bigmountainstudio.com/boo...
Combine Mastery in SwiftUI
https://www.bigmountainstudio.com/com...
Core Data Mastery in SwiftUI
https://www.bigmountainstudio.com/cor...
SwiftUI Animations Mastery
https://www.bigmountainstudio.com/ani...
AppCoda Books
Beginning iOS 16 Programming with Swift (SwiftUI + UIKit)
https://gumroad.com/a/646790611/WihuX
Beginning iOS 16 Programming with Swift (SwiftUI + UIKit) - Starter
https://gumroad.com/a/646790611/mOzKq
Mastering SwiftUI 4 + Swift Programming for iOS 16 - Professional
https://gumroad.com/a/646790611/gjPBw
Mastering SwiftUI 4 - Starter
https://gumroad.com/a/646790611/TyNEz
Other References:
Stewart Lynch's YouTube Channel:
/ @stewartlynch
Stewart Lynch on Mastodon:
https://iosdev.space/@StewartLynch
Stewart Lynch On Threads:
@StewartLynch
Stewart Lynch on X:
https://x.com/StewartLynch
Stewart Lynch on LinkedIn
/ stewartlynch
Watch video 3. SwiftData Dynamic Sorts and Filters online without registration, duration hours minute second in high quality. This video was added by user Stewart Lynch 12 November 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 6,569 once and liked it 291 people.