CoreData max value get

[php] func datMeetingMaxId() -> Int { //*****context is DB file stored place let context = (UIApplication.shared.delegate as! AppDelegate).persistentContainer.viewContext /// get max Variable declaration let expressionDatMeetiongId = "Maxid" ///make fetchRequest let fetchRequest = NSFetchRequest<NSFetchRequestResult>() ///make EntityDescription //forEntityName is DB name //open class func entity(ここ- forEntityName entityName: String, in context: NSManagedObjectContext) -> NSEntityDescription? //in : context There is in context let entityDescription = NSEntityDescription.entity( forEntityName :"DatMeeting" , in : context) fetchRequest.entity = entityDescription //********Make instance let keyPathExpression = NSExpression(forKeyPath: "id") let expression = NSExpression(forFunction: "max:", arguments: [keyPathExpression]) let expressionDescription = NSExpressionDescription() expressionDescription.name = expressionDatMeetiongId expressionDescription.expression = expression expressionDescription.expressionResultType = NSAttributeType.integer64AttributeType fetchRequest.resultType = NSFetchRequestResultType.dictionaryResultType fetchRequest.propertiesToFetch = [expressionDescription] //******Error handling do try catch do{ let Read more about CoreData max value get[…]

-->