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

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

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