mirror of
https://github.com/wahyd4/Yep.git
synced 2026-08-13 14:56:03 +10:00
custom Pop animation for ConversationMessagePreviewNavigationControllerDelegate
This commit is contained in:
+7
-1
@@ -21,7 +21,7 @@ class ConversationMessagePreviewNavigationControllerDelegate: NSObject, UINaviga
|
||||
} else if operation == .Pop {
|
||||
if toVC.isKindOfClass(ConversationViewController.self) {
|
||||
isPresentation = false
|
||||
return nil
|
||||
return self
|
||||
}
|
||||
}
|
||||
|
||||
@@ -139,6 +139,12 @@ class ConversationMessagePreviewNavigationControllerDelegate: NSObject, UINaviga
|
||||
let fromVC = transitionContext.viewControllerForKey(UITransitionContextFromViewControllerKey) as? MessageMediaViewController
|
||||
|
||||
let fromView = transitionContext.viewForKey(UITransitionContextFromViewKey)
|
||||
let toView = transitionContext.viewForKey(UITransitionContextToViewKey)
|
||||
|
||||
let containerView = transitionContext.containerView()
|
||||
|
||||
containerView.addSubview(toView!)
|
||||
containerView.addSubview(fromView!)
|
||||
|
||||
let animatingVC = fromVC!
|
||||
let animatingView = fromView!
|
||||
|
||||
Reference in New Issue
Block a user