[PanModal] Round frame positions for comparison (#83)

This commit is contained in:
Stephen Sowole
2020-02-24 15:20:26 -08:00
committed by GitHub
parent f02439dc0c
commit 208640e03e
@@ -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
}