From af65aa88e0f7e0594cef3764430be6315538ff7e Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 17 Nov 2019 10:19:50 -0500 Subject: [PATCH] Don't use suggested actions in context menus --- Tusker/Screens/Utilities/EnhancedTableViewController.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Tusker/Screens/Utilities/EnhancedTableViewController.swift b/Tusker/Screens/Utilities/EnhancedTableViewController.swift index 7737acf2..eb8c3416 100644 --- a/Tusker/Screens/Utilities/EnhancedTableViewController.swift +++ b/Tusker/Screens/Utilities/EnhancedTableViewController.swift @@ -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 {