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

Removed reference to 'UIApplication.shared' for Xcode 13 compatibility #581

Merged
merged 1 commit into from
Jul 21, 2021

Conversation

motasay
Copy link
Contributor

@motasay motasay commented Jul 21, 2021

On Xcode 13 Beta 3 I'm not able to build the project and see this error:

.../checkouts/Parchment/Parchment/Classes/PageViewController.swift:118:31: 'shared' is unavailable in application extensions for iOS: Use view controller based solutions where appropriate instead.

Since the deployment target for the project is iOS 9, I think the line:
else if UIApplication.shared.userInterfaceLayoutDirection == .rightToLeft

is not needed anymore, right?

I'm not sure if this is the best fix for the issue, so let me know what you think please.

@rechsteiner
Copy link
Owner

Thanks for fixing 🙌

@rechsteiner rechsteiner merged commit 60b4096 into rechsteiner:master Jul 21, 2021
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