Ios swift – Dynamic Query SwiftData won't work anymore in ios 18
I used to filter using initializers like this(example): struct ArticleView: View { @Environment(.modelContext) private var modelContext @Query private var articleStates: [ArticleState] let article: Article init(article: Article) { self.article = article _articleStates = Query(filter: #Predicate { $0.articleID == article.id } )…