             {
                 drawerContentContainer.addSubview(drawer.view)
                 drawerContentContainer.sendSubviewToBack(drawer.view)
-                
+
                 drawer.view.constrainToParent()
             }
         }
-        
+
         let safeAreaTopInset = BottomSheetSafeAreaInsets.top
         let safeAreaBottomInset = BottomSheetSafeAreaInsets.bottom
         let safeAreaLeftInset = BottomSheetSafeAreaInsets.left
         let safeAreaRightInset = BottomSheetSafeAreaInsets.right
-        
-        
+
+
         let displayModeForCurrentLayout: BottomSheetDisplayMode = displayMode != .automatic ? displayMode : ((self.view.bounds.width >= 600.0 || self.traitCollection.horizontalSizeClass == .regular) ? .panel : .drawer)
-        
+
         currentDisplayMode = displayModeForCurrentLayout
-        
+
         if displayModeForCurrentLayout == .drawer
         {
             // Bottom inset for safe area / bottomLayoutGuide

                    currentClosestStop = currentStop
                }
            }
            
            var closestValidDrawerPosition: BottomSheetPosition = drawerPosition
            
            if abs(Float(currentClosestStop - heightOfOpenDrawer)) <= Float.ulpOfOne && supportedPositions.contains(.open)
            {
                closestValidDrawerPosition = .open

                self.drawerScrollView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 0.0, right: 0)
                self.drawerScrollView.scrollIndicatorInsets =  UIEdgeInsets(top: 0, left: 0, bottom: 0.0, right: 0)
            }

            // Layout container
            var collapsedHeight:CGFloat = kBottomSheetDefaultCollapsedHeight
            var partialRevealHeight:CGFloat = kBottomSheetDefaultPartialRevealHeight

            if let drawerVCCompliant = drawerContentViewController as? BottomSheetDrawerViewControllerDelegate
            {
                collapsedHeight = drawerVCCompliant.collapsedDrawerHeight?(bottomSafeArea: safeAreaBottomInset) ?? kBottomSheetDefaultCollapsedHeight
                partialRevealHeight = drawerVCCompliant.partialRevealDrawerHeight?(bottomSafeArea: safeAreaBottomInset) ?? kBottomSheetDefaultPartialRevealHeight
            }

            let lowestStop = [(self.view.bounds.size.height - panelInsets.bottom - safeAreaTopInset), collapsedHeight, partialRevealHeight].min() ?? 0

            let xOrigin = (panelCornerPlacement == .bottomLeft || panelCornerPlacement == .topLeft) ? (safeAreaLeftInset + panelInsets.left) : (self.view.bounds.maxX - (safeAreaRightInset + panelInsets.right) - panelWidth)

            let yOrigin = (panelCornerPlacement == .bottomLeft || panelCornerPlacement == .bottomRight) ? (panelInsets.top + safeAreaTopInset) : (panelInsets.top + safeAreaTopInset + bounceOverflowMargin)

            if supportedPositions.contains(.open)
            {
                // Layout scrollview
