From b78c5f4ecea4dd5536ebe7ce3f814b6ed669fafe Mon Sep 17 00:00:00 2001 From: Shin Yamamoto Date: Sat, 4 May 2019 18:21:14 +0900 Subject: [PATCH] Decouple between grabberTopPadding and containerTopInset --- Framework/Sources/FloatingPanelSurfaceView.swift | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Framework/Sources/FloatingPanelSurfaceView.swift b/Framework/Sources/FloatingPanelSurfaceView.swift index 037de0d..8011cbf 100644 --- a/Framework/Sources/FloatingPanelSurfaceView.swift +++ b/Framework/Sources/FloatingPanelSurfaceView.swift @@ -129,7 +129,7 @@ public class FloatingPanelSurfaceView: UIView { grabberHandle.translatesAutoresizingMaskIntoConstraints = false grabberHandleWidthConstraint = grabberHandle.widthAnchor.constraint(equalToConstant: grabberHandleWidth) grabberHandleHeightConstraint = grabberHandle.heightAnchor.constraint(equalToConstant: grabberHandleHeight) - grabberHandleTopConstraint = grabberHandle.topAnchor.constraint(equalTo: topAnchor, constant: grabberTopPadding + containerTopInset) + grabberHandleTopConstraint = grabberHandle.topAnchor.constraint(equalTo: topAnchor, constant: grabberTopPadding) NSLayoutConstraint.activate([ grabberHandleWidthConstraint, grabberHandleHeightConstraint, @@ -142,7 +142,7 @@ public class FloatingPanelSurfaceView: UIView { super.updateConstraints() containerViewHeightConstraint.constant = bottomOverflow topOffsetConstraint.constant = containerTopInset - grabberHandleTopConstraint.constant = grabberTopPadding + containerTopInset + grabberHandleTopConstraint.constant = grabberTopPadding grabberHandleWidthConstraint.constant = grabberHandleWidth grabberHandleHeightConstraint.constant = grabberHandleHeight }