Post

Replies

Boosts

Views

Activity

Reply to Global functions are not supported in this predicate
Use predicate as a static function https://developer.apple.com/documentation/swiftdata/filtering-and-sorting-persistent-data#Define-a-filter-using-a-predicate filter: predicate(), static func predicate() -> Predicate<Flashcard> { let now = Date() return #Predicate<Flashcard> { $0.nextReviewAt <= now } }
Replies
Boosts
Views
Activity
Nov ’23