Skip to content

Add support for MacCatalyst #201

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

Merged
merged 3 commits into from
Dec 5, 2022
Merged

Add support for MacCatalyst #201

merged 3 commits into from
Dec 5, 2022

Conversation

mhdostal
Copy link
Member

@mhdostal mhdostal commented Dec 2, 2022

Using runtime checks for iOS 16 (if #available(iOS 16)) works fine for Charts, as Xcode 14.0 has the necessary frameworks to support building with Charts. (Swift Charts are only supported on iOS 16 devices.)

For MacCatalyst, Xcode 14.0 does not have the necessary frameworks, so Xcode 14.1 is required when building for MacCatalyst in order to support Charts. This necessitates the compile-time checks present in this PR. Once our minimum Xcode version is 14.1 (or greater), we can remove those checks.

@mhdostal mhdostal requested a review from dfeinzimer December 2, 2022 15:39
Copy link
Collaborator

@dfeinzimer dfeinzimer left a comment

Choose a reason for hiding this comment

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

Looks good

@mhdostal mhdostal merged commit 7e5e657 into v.next Dec 5, 2022
@mhdostal mhdostal deleted the mhd/CatalystSupport branch December 5, 2022 15:54
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