Repository navigation
Conversation
The app target already builds for visionOS 27 (Xcode default), but the packages still declared visionOS 1. Checks like #available(iOS 26, *) then treated APIs such as navigationTransition(.zoom), matchedTransitionSource and FoundationModels as unavailable on visionOS, breaking the build.
glassEffect, GlassEffectContainer and the .glass/.glassProminent button styles are unavailable on visionOS, and #available(iOS 26, *) does not exclude visionOS at compile time. Use glassBackgroundEffect and bordered button styles there instead, and add a GlassContainer wrapper that falls back to plain content on visionOS.
ToolbarSpacer, scrollEdgeEffectStyle, sharedBackgroundVisibility and toolbar matchedTransitionSource are unavailable on visionOS.
Restore the currentInstance environment value used by the visionOS photo picker, and exclude bottomInset on visionOS where it is unused and MediaPickerPanelView does not exist.
WishKit supports visionOS, but the framework was only linked for iOS, so 'import WishKit' failed when building for visionOS.
Since 2.0, visionOS shared the iPad/Mac path: tabs inside a TabSection with sidebarOnly placement, the sidebarAdaptable style and, on visionOS 27, a sidebar default placement. That replaced the visionOS tab bar ornament with a sidebar. Render plain tabs on visionOS again, as in 1.11.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
I originally set out to add Look to Scroll support to the visionOS version of Ice Cubes. While working on it, I noticed that the visionOS target has fallen significantly behind the current 2.x release. Among other things, it no longer compiles since the Liquid Glass design changes.
This PR is meant to fix that, so we have a 2.x version that builds and works on visionOS again.
What this PR does
While working on this, I also found a few other places where the visionOS UI no longer matches the current iOS design. I’d like to keep this PR focused on getting the target compiling and functional again, so those differences will be addressed in follow-up PRs.