[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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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
}