parent
d3e31541cf
commit
dfb72edbd8
|
@ -55,11 +55,11 @@ extension EnhancedTableViewController {
|
|||
}
|
||||
}
|
||||
|
||||
override func tableView(_ tableView: UITableView, willCommitMenuWithAnimator animator: UIContextMenuInteractionCommitAnimating) {
|
||||
if /*animator.preferredCommitStyle == .pop,*/ // preferredCommitStyle is always .dismiss, see FB6113554
|
||||
let viewController = animator.previewViewController {
|
||||
override func tableView(_ tableView: UITableView, willPerformPreviewActionForMenuWith configuration: UIContextMenuConfiguration, animator: UIContextMenuInteractionCommitAnimating) {
|
||||
if let viewController = animator.previewViewController {
|
||||
animator.preferredCommitStyle = .pop
|
||||
animator.addCompletion {
|
||||
if viewController is LargeImageViewController || viewController is SFSafariViewController {
|
||||
if viewController is LargeImageViewController || viewController is GalleryViewController || viewController is SFSafariViewController {
|
||||
self.present(viewController, animated: true)
|
||||
} else {
|
||||
self.show(viewController, sender: nil)
|
||||
|
|
Loading…
Reference in New Issue