visionOS Support
Saafo opened this issue · comments
Since Xcode's Debug Hierarchy
feature is not available on visionOS now, FLEX is heavily needed on visionOS platform.
I've done some simple works and here is the Demo screenshot on visionOS
The simple works including:
- Replacing
keyWindow
withwindows.firstObject
, which is not appropriate, and I'm not sure what's the best replacement(AlthoughUIWindowScene
has a private property_isKeyWindowScene
andUIWindow
has a public propertyisKeyWindow
). - Replacing
UIScreen.mainScreen.scale
with2
orUIWindowScene.traitCollection.displayScale
- Disabling UIFeedbackGenerator and other unavailable APIs.
However, there still remains some works to be done:
- when I run the demo, some fatalError from
Echo
always happens:
(The crash issue only happens in SPM Example. In Cocoapods Example, it works fine.)
When directly run the demo, there's a fatalError: No Objective-C class named SISchemaRequestLink
. So I set showsSearchBar = NO;
in FLEXTableViewController.m
. However this fatalError happens again when I take a screenshot by cmd+s
:
I'm not sure whether it's an issue related to Echo
. Directly setup a UISearchController
works well.
Echo's crash is very frequent, can be reproduced by restarting the app again, or by press any key.
- The segment picker (black area) cannot working.
- The
snapshot
feature (inviews
left top button) need updates to UIGraphicsImageRenderer, which is also needed in iOS 17 🤔
- The
select
feature completely cannot working.
Whoa, nice work! You should put up a PR. I can help with the issues you listed, a lot of them can be worked around with #if
's checking for visionOS
Whoa, nice work! You should put up a PR. I can help with the issues you listed, a lot of them can be worked around with
#if
's checking for visionOS
I'm glad to provide a pr! But I haven't decided how to solve some of the issues, such as the keyWindow
.
And I may request for your help to solve the segmented view and the select feature