Filtering the results from a SwiftData query – SwiftData Starter Project 6/8

Опубликовано: 30 Сентябрь 2023
на канале: Paul Hudson
6,955
168

Learn how the #Predicate macro lets us filter SwiftData queries effectively, then use it with SwiftUI's searchable() to get dynamic filtering. You can find the completed source code here: https://github.com/twostraws/iTour

This is an 8-part project that walks you through building a SwiftData project from scratch using SwiftUI. It's designed to work alongside my book SwiftData by Example, available at https://www.hackingwithswift.com/quic...

This project is aimed at programmers who have some experience with Swift and SwiftUI already, and want to get up to speed with SwiftData as quickly as possible.