Skip to content

visionOS support (new method) #252

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
Sep 3, 2023
Merged

visionOS support (new method) #252

merged 3 commits into from
Sep 3, 2023

Conversation

Rminsh
Copy link
Contributor

@Rminsh Rminsh commented Aug 27, 2023

Since the project is using the UIKit most of the times (iOS, watchOS, tvOS, visionOS, mac catalyst) instead of specifying os check types, we should use #if canImport(UIKit).
So in future if apple added any type of device (such as glasses 😁) and that device can use UIKit, we don't have to change anything (even we don't have to specify any swift version check).

Also this can be removed from package.swift if there is any problem with Xcode 14 (couldn't confirm that):

.custom("visionOS", versionString: "1.0")

Cheers

Copy link
Owner

@gonzalezreal gonzalezreal left a comment

Choose a reason for hiding this comment

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

Hey @Rminsh,

Thanks for this contribution. I only left a minor remark about the changes in Package.swift. Other than that, it looks great!

@Rminsh
Copy link
Contributor Author

Rminsh commented Sep 3, 2023

@gonzalezreal Thanks, vision's version check is removed , Please check again.

@gonzalezreal gonzalezreal merged commit e599f4c into gonzalezreal:main Sep 3, 2023
bartlomiejzabicki pushed a commit to Bartlomiej-Zabicki-Mobile-Developer/MarkdownUI that referenced this pull request Oct 8, 2023
* Changed UIKit OS checks for global use (visionOS)

* Added visionOS to package.swift

* Removed visionOS version in Package.swift
@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