I hope that no one tells me to RTFM because I have been struggling with this for some time here and on Apple Developer and doing lots of searching.
I am getting an EXC-BAD-ACCESS error on this statement:
var thisPredicate = NSPredicate(format: "(sectionNumber == %@"), thisSection)
thisPredicate = (_ContiguousArrayStorage ...)
You might try String Interpolation Swift Standard Library Reference. That would look something like this:
let thisSection = 1 let thisPredicate = NSPredicate(format: "sectionNumber == \(thisSection)")