Answers for "sort model date in swift"

1

swift core data sort by date

var sdSortDate = NSSortDescriptor.init(key: "date", ascending: false)
fr.sortDescriptors = [sdSortDate]
let result4 = try! context.fetch(fr)
Posted by: Guest on April-23-2020

Code answers related to "Swift"

Browse Popular Code Answers by Language