Don't use suggested actions in context menus
This commit is contained in:
parent
c85836eda6
commit
af65aa88e0
|
@ -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 {
|
||||
|
|
Loading…
Reference in New Issue