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 build for macCatalyst #87

Merged
merged 1 commit into from
Apr 20, 2021
Merged

Fix build for macCatalyst #87

merged 1 commit into from
Apr 20, 2021

Conversation

ky1vstar
Copy link
Contributor

Currently library fails to build when targeting Mac Catalyst platform. It happens due to canImport(AppKit) pre-compile check which is true on Mac Catalyst, but many APIs like NSFont still are not available. This PR adds targetEnvironment checks.

@benjohnde
Copy link
Collaborator

benjohnde commented Apr 20, 2021

Looks feasible to me, d'accord with that one @gaebel?

@benjohnde
Copy link
Collaborator

Well, thanks for the contribution first of all :D @ky1vstar !

@gaebel gaebel merged commit 9aa68f9 into bmoliveira:master Apr 20, 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.

3 participants