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

refactor: prefer checking module availability over the os check #268

Merged
merged 2 commits into from
Oct 11, 2023

Conversation

MojtabaHs
Copy link
Contributor

In addition to this merged PR, using canImport() is an improvement because it lets you focus on what functionality you want rather than what operating system.

So, for example, if UIKit becomes available on macOS tomorrow you won’t need to change your code to use it.

P.S.: Something similar happened for the visionOS already.

@gonzalezreal gonzalezreal merged commit 2443543 into gonzalezreal:main Oct 11, 2023
1 check passed
@leecaa leecaa mentioned this pull request May 24, 2024
3 tasks
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