forked from shadowfacts/Tusker
Add context menu for account cell
This commit is contained in:
parent
9522509f8f
commit
817ebcb7eb
|
@ -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) })
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue