MessageActionsTransitionController
Transitions controller for ChatMessagePopupVC
.
open class MessageActionsTransitionController: NSObject, UIViewControllerTransitioningDelegate,
UIViewControllerAnimatedTransitioning
Inheritance
NSObject
, UIViewControllerAnimatedTransitioning
, UIViewControllerTransitioningDelegate
Properties
isPresenting
Indicates if the transition is for presenting or dismissing.
open var isPresenting: Bool = false
messageContentViewFrame
messageContentView
's initial frame.
open var messageContentViewFrame: CGRect = .zero
messageContentViewActivateConstraints
messageContentView
's constraints to be activated after dismissal.
open var messageContentViewActivateConstraints: [NSLayoutConstraint] = []
messageContentViewDeactivateConstraints
Constraints to be deactivated after dismissal.
open var messageContentViewDeactivateConstraints: [NSLayoutConstraint] = []
messageContentView
messageContentView
instance that is animated.
open weak var messageContentView: ChatMessageContentView?
messageContentViewSuperview
messageContentView
's initial superview
.
open weak var messageContentViewSuperview: UIView?
mainContainerTopAnchor
Top anchor for main container.
open var mainContainerTopAnchor: NSLayoutConstraint?
impactFeedbackGenerator
Feedback generator.
public private(set) lazy var impactFeedbackGenerator
Methods
animationController(forPresented:presenting:source:)
public func animationController(
forPresented presented: UIViewController,
presenting: UIViewController,
source: UIViewController
) -> UIViewControllerAnimatedTransitioning?
animationController(forDismissed:)
public func animationController(forDismissed dismissed: UIViewController) -> UIViewControllerAnimatedTransitioning?
transitionDuration(using:)
public func transitionDuration(using transitionContext: UIViewControllerContextTransitioning?) -> TimeInterval
animateTransition(using:)
public func animateTransition(using transitionContext: UIViewControllerContextTransitioning)
animatePresent(using:)
Animates present transition.
open func animatePresent(using transitionContext: UIViewControllerContextTransitioning)
animateDismiss(using:)
Animates dismissal transition.
open func animateDismiss(using transitionContext: UIViewControllerContextTransitioning)