Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This switches to
canImport(UIKit)
/canImport(AppKit)
/canImport(WatchKit)
instead of OS-specific checks in the cases where the only requirement is importing the specific framework and using those symbols.This also adds an entry into the device type matching for Apple Vision Pro and updates the demo project and tests to also run on visionOS.
💡 Motivation and Context
We're currently unable to use PostHog on visionOS because of compilation issues, and we would like to be able to.
💚 How did you test it?
Added build support to the Demo project for Apple Vision Pro and ran in the simulator. All tests continue to pass. Note: I had to update Nimble to the latest version for the test to be able to build successfully.
📝 Checklist