Ios swift – SwiftData Filtering on a many to many relationship
I am trying to filter on a many to many relationship. So I have 2 models one is called Movie and the other is called Genre. They look like this. @Model class Movie { @Attribute(.unique) var name: String @Relationship(inverse: Genre.movies)…