Reload in the background on edit

This commit is contained in:
Davide De Rosa 2019-03-27 20:59:16 +01:00
parent f0d0eb5ed3
commit 05ba654b2f
1 changed files with 2 additions and 3 deletions

View File

@ -223,10 +223,9 @@ class ShortcutsEditViewController: UITableViewController, INUIEditVoiceShortcutV
editedIndexPath = nil
wrappers?[indexPath.row] = ShortcutWrapper.from(voiceShortcut)
wrappers?.sort()
tableView.reloadData()
dismiss(animated: true) {
self.tableView.reloadData()
}
dismiss(animated: true)
}
func editVoiceShortcutViewController(_ controller: INUIEditVoiceShortcutViewController, didDeleteVoiceShortcutWithIdentifier deletedVoiceShortcutIdentifier: UUID) {