 
 extension Motion {
     fileprivate func cleanupAnimation() {
-        Motion.delay(transitionDuration(using: transitionContext) + modifiedDelay) { [weak self] in
+        Motion.delay(transitionDuration(using: transitionContext) + modifiedDelay + (isContainer ? 0.2 : 0)) { [weak self] in
             guard let s = self else {
                 return
             }

}

open class Motion: NSObject {
    open var isPresenting: Bool
    
    open fileprivate(set) var transitionPairs = [(UIView, UIView)]()
    

    
    public override init() {
        isPresenting = false
        isContainer = false
        super.init()
    }
    
    public init(isPresenting: Bool, isContainer: Bool) {
        self.isPresenting = isPresenting
        self.isContainer = isContainer
        super.init()
    }
    
