Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Issue #1181 - dismissPopover does not work on iOS 14 #1182

Merged
merged 1 commit into from
Sep 17, 2020

Conversation

dostrander
Copy link
Contributor

UIDimmingView looks to be replaced with _UITouchFallbackView in iOS 14. This PR allows us to fallback to _UITouchFallbackView when UIDImmingView isn't found.

Copy link
Contributor

@harleyjcooper harleyjcooper left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM other than one question.

@@ -1164,7 +1168,7 @@ - (void)pullToRefreshAccessibilityElement:(UIAccessibilityElement *)element inVi
// Can handle only the touchable space.
CGRect elementFrame = [viewToSwipe convertRect:viewToSwipe.bounds toView:[UIApplication sharedApplication].keyWindow.rootViewController.view];
CGPoint swipeStart = CGPointCenteredInRect(elementFrame);
CGPoint swipeDisplacement = CGPointMake(CGRectGetMidX(elementFrame), CGRectGetMaxY(elementFrame));
CGPoint swipeDisplacement = CGPointMake(CGRectGetMidX(elementFrame) - swipeStart.x, CGRectGetMaxY(elementFrame) - swipeStart.y);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What change led to this bit? Why has the displacement changed?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops didn't mean to change this.

The reason why i even put this in here at all was when I put in the visualizer i noticed the the pull to refresh went diagonally this fixes that. Not an issue so going to leave as is for now but just was testing things out and forgot to remove it

@dostrander dostrander force-pushed the dostrander/issue-1181 branch from c3c57a3 to ff351e2 Compare September 16, 2020 18:42
@dostrander dostrander merged commit b6b668e into kif-framework:master Sep 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants