         roundedViewForPresentingView.frame = initialFrame
         roundedViewForPresentingView.transform = CGAffineTransform(scaleX: scale, y: scale)
         
-        snapshotViewHeightConstraint?.isActive = false
+        snapshotViewTopConstraint?.isActive = false
+        snapshotViewWidthConstraint?.isActive = false
         snapshotViewAspectRatioConstraint?.isActive = false
         presentingViewSnapshotView.translatesAutoresizingMaskIntoConstraints = true
         presentingViewSnapshotView.frame = initialFrame

        
        presentingViewSnapshotView.transform = .identity
        presentingViewSnapshotView.translatesAutoresizingMaskIntoConstraints = false
        NSLayoutConstraint.activate([
            presentingViewSnapshotView.centerXAnchor.constraint(equalTo: containerView.centerXAnchor),
            presentingViewSnapshotView.centerYAnchor.constraint(equalTo: containerView.centerYAnchor)
        ])
        updateSnapshotViewAspectRatio()
        
        roundedViewForPresentingView.transform = .identity

    private let roundedViewForPresentedView = RoundedView()
    
	private var cachedContainerWidth: CGFloat = 0
    private var snapshotViewTopConstraint: NSLayoutConstraint?
    private var snapshotViewWidthConstraint: NSLayoutConstraint?
	private var snapshotViewAspectRatioConstraint: NSLayoutConstraint?
    
    private var presentedViewFrameObserver: NSKeyValueObservation?
