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 {
|
guard let (previewProvider, actionsProvider) = cell.getPreviewProviders(for: cellLocation, sourceViewController: self) else {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
let actionProvider: UIContextMenuActionProvider = { (elements) in
|
let actionProvider: UIContextMenuActionProvider = { (_) in
|
||||||
return UIMenu(title: "", image: nil, identifier: nil, options: [], children: elements + actionsProvider())
|
return UIMenu(title: "", image: nil, identifier: nil, options: [], children: actionsProvider())
|
||||||
}
|
}
|
||||||
return UIContextMenuConfiguration(identifier: nil, previewProvider: previewProvider, actionProvider: actionProvider)
|
return UIContextMenuConfiguration(identifier: nil, previewProvider: previewProvider, actionProvider: actionProvider)
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in New Issue