Post

Replies

Boosts

Views

Activity

Reply to Dynamically changing fetch request
Have you already tried this way? if groupBy == 2 { cards.nsPredicate = nil let sortSetID = NSSortDescriptor(keyPath: \.setID, ascending: true) let sortName = NSSortDescriptor(keyPath: \.name, ascending: true) cards.sortDescriptors = [sortSetID, sortName] // This errors cards.sectionIdentifier = SectionedFetchResults<String, Card> // This errors }
Jun ’23