From 208640e03e9bb8d7099b052dffba1099e54fd9dd Mon Sep 17 00:00:00 2001 From: Stephen Sowole Date: Mon, 24 Feb 2020 15:20:26 -0800 Subject: [PATCH] [PanModal] Round frame positions for comparison (#83) --- PanModal/Controller/PanModalPresentationController.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PanModal/Controller/PanModalPresentationController.swift b/PanModal/Controller/PanModalPresentationController.swift index 56f8aaf..490fb66 100644 --- a/PanModal/Controller/PanModalPresentationController.swift +++ b/PanModal/Controller/PanModalPresentationController.swift @@ -311,7 +311,7 @@ private extension PanModalPresentationController { var isPresentedViewAnchored: Bool { if !isPresentedViewAnimating && extendsPanScrolling - && presentedView.frame.minY <= anchoredYPosition { + && presentedView.frame.minY.rounded() <= anchoredYPosition.rounded() { return true }