diff --git a/Tusker/Screens/Conversation/ConversationTableViewController.swift b/Tusker/Screens/Conversation/ConversationTableViewController.swift index 42a1532116..2b5ccfc9ec 100644 --- a/Tusker/Screens/Conversation/ConversationTableViewController.swift +++ b/Tusker/Screens/Conversation/ConversationTableViewController.swift @@ -60,23 +60,6 @@ class ConversationTableViewController: EnhancedTableViewController { } } - override var previewActionItems: [UIPreviewActionItem] { - var actions = [UIPreviewActionItem]() - if let status = MastodonCache.status(for: mainStatusID), - let url = status.url { - actions.append(UIPreviewAction(title: "Open in Safari", style: .default, handler: { (_, _) in - let vc = SFSafariViewController(url: url) - UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true) - // TODO: kill this ^ with fire - })) - actions.append(UIPreviewAction(title: "Share", style: .default, handler: { (_, _) in - let vc = UIActivityViewController(activityItems: [url], applicationActivities: nil) - UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true) - })) - } - return actions - } - func getDirectParents(of status: Status, from statuses: [Status]) -> [Status] { var statuses = statuses var parents: [Status] = [] diff --git a/Tusker/Screens/Profile/ProfileTableViewController.swift b/Tusker/Screens/Profile/ProfileTableViewController.swift index 29414518a6..9f10661256 100644 --- a/Tusker/Screens/Profile/ProfileTableViewController.swift +++ b/Tusker/Screens/Profile/ProfileTableViewController.swift @@ -93,26 +93,6 @@ class ProfileTableViewController: EnhancedTableViewController { NotificationCenter.default.addObserver(self, selector: #selector(updateUIForPreferences), name: .preferencesChanged, object: nil) } - override var previewActionItems: [UIPreviewActionItem] { - var actions = [UIPreviewActionItem]() - if let account = MastodonCache.account(for: accountID) { - actions.append(UIPreviewAction(title: "Open in Safari", style: .default, handler: { (_, _) in - let vc = SFSafariViewController(url: account.url) - UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true) - // TODO: kill this ^ with fire - })) - actions.append(UIPreviewAction(title: "Share", style: .default, handler: { (_, _) in - let vc = UIActivityViewController(activityItems: [account.url], applicationActivities: nil) - UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true) - })) - actions.append(UIPreviewAction(title: "Send Message", style: .default, handler: { (_, _) in - let vc = UINavigationController(rootViewController: ComposeViewController(mentioningAcct: account.acct)) - UIApplication.shared.delegate!.window!!.rootViewController!.present(vc, animated: true) - })) - } - return actions - } - func updateAccountUI() { loadingVC?.removeViewAndController()