Don't use suggested actions in context menus

This commit is contained in:
Shadowfacts 2019-11-17 10:19:50 -05:00
parent c85836eda6
commit af65aa88e0
Signed by untrusted user: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 2 additions and 2 deletions

View File

@ -46,8 +46,8 @@ extension EnhancedTableViewController {
guard let (previewProvider, actionsProvider) = cell.getPreviewProviders(for: cellLocation, sourceViewController: self) else {
return nil
}
let actionProvider: UIContextMenuActionProvider = { (elements) in
return UIMenu(title: "", image: nil, identifier: nil, options: [], children: elements + actionsProvider())
let actionProvider: UIContextMenuActionProvider = { (_) in
return UIMenu(title: "", image: nil, identifier: nil, options: [], children: actionsProvider())
}
return UIContextMenuConfiguration(identifier: nil, previewProvider: previewProvider, actionProvider: actionProvider)
} else {