Query SwiftData model for max value of an attribute I needed help creating the predicate in order to query my swift data model for the record with the largest integer. Is this possible, and is it any more efficient than just fetching all the data and then doing the filtering? App & System Services iCloud & Data SwiftData 3 1 1.4k Dec ’23