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 positioning of continue label on iPhone X #25

Merged
merged 1 commit into from Nov 13, 2017

Conversation

bradsokol
Copy link
Contributor

On the iPhone X simulator, the continue label is clipped by the "notch" when displayed at the top and overlaps the home bar at the bottom.

Here is the unmodified example app running on the iPhone X simulator:

image

This PR adds support for UIKit's new safe area insets. If built with the iOS 11 SDK, and running on a version of iOS that supports UIView safeAreaInsets, the code will adjust the position of the continue label to avoid these collisions.

Here's the example app with this fix:

image

Also, I noticed that the two copies of MPCoachMarks.m - Example/Example/MPCoachMarks/MPCoachMarks.m and MPCoachMarks/MPCoachMarks.m are slightly different. I've made this fix in both files.

@bubudrc bubudrc merged commit 21f93af into bubudrc:master Nov 13, 2017
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.

None yet

2 participants