Add context menu for account cell

This commit is contained in:
Shadowfacts 2019-09-06 17:50:27 -04:00
parent 9522509f8f
commit 817ebcb7eb
Signed by: shadowfacts
GPG Key ID: 94A5AB95422746E5
1 changed files with 8 additions and 0 deletions

View File

@ -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) })
}
}