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 where this package was interfering with SwiftUI previews #7

Merged
merged 3 commits into from Jul 28, 2023

Conversation

andylin2004
Copy link
Contributor

@andylin2004 andylin2004 commented Oct 2, 2022

In the previous release, the #error statement kept on tripping the SwiftUI previews for other OSes into thinking that it needs to compile the digit pad in this package. This PR should try to mitigate this issue by using the @available(platform, unavailable) pattern on the top of a struct, as well as adding the other OSes onto the Package.swift (as seen in #5). I think this is technically an Xcode issue, but that bug has been here for a while to the point that this might be the best we can do at the moment.

@jojost1
Copy link

jojost1 commented Jul 28, 2023

@ApplebaumIan any chance we can integrate this? Seems to be a bigger issue with Xcode 15 beta.

@ApplebaumIan
Copy link
Owner

After testing the package it does seem to resolve the SwiftUI Preview issue! I also like the new close button, but I may add an option to change the button to a check mark for those types of use cases! Thank you! @andylin2004

@ApplebaumIan ApplebaumIan merged commit 9053d7c into ApplebaumIan:main Jul 28, 2023
3 checks passed
@andylin2004
Copy link
Contributor Author

andylin2004 commented Jul 28, 2023 via email

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

3 participants