From 817ebcb7ebf0afde0faa92235169eabf32349ad2 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Fri, 6 Sep 2019 17:50:27 -0400 Subject: [PATCH] Add context menu for account cell --- Tusker/Views/Account Cell/AccountTableViewCell.swift | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Tusker/Views/Account Cell/AccountTableViewCell.swift b/Tusker/Views/Account Cell/AccountTableViewCell.swift index 66cff9348c..c97cc49e17 100644 --- a/Tusker/Views/Account Cell/AccountTableViewCell.swift +++ b/Tusker/Views/Account Cell/AccountTableViewCell.swift @@ -65,3 +65,11 @@ class AccountTableViewCell: UITableViewCell { } } + +extension AccountTableViewCell: MenuPreviewProvider { + + func getPreviewProviders(for location: CGPoint, sourceViewController: UIViewController) -> PreviewProviders? { + return (content: { ProfileTableViewController(accountID: self.accountID) }, actions: { self.actionsForProfile(accountID: self.accountID) }) + } + +}