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

visionOS support #5146

Open
gabors opened this issue Jan 30, 2024 · 0 comments
Open

visionOS support #5146

gabors opened this issue Jan 30, 2024 · 0 comments
Assignees

Comments

@gabors
Copy link

gabors commented Jan 30, 2024

Please add support for compiling on visionOS.

So far the only issue I found to make it work is the usage of the NSUIScreen, as UIScreen is unavalable on visionOS.
This framework uses it to determine the scale

Oh and another spot is
super.accessibilityFrame = containerView.convert(newValue, to: UIScreen.main.coordinateSpace)

Other than that adding #if os(iOS) || os(tvOS) || os(visionOS) does the trick.

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

No branches or pull requests

2 participants