You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Fix the foreground material style crash on visionOS #1173
area: exampleExample apps, previews, sample projects, screenshots, or demo assets.area: renderingDisplayList, render backends, renderer hosts, drawing, and effects.impact: crashCrash, assertion, or fatal runtime failure.platform: visionOSvisionOS-specific behavior or support.priority: p1Medium priority.type: bugSomething is not working correctly.
On visionOS, apps crash when they render text or shapes with the default foreground style. visionOS windows report a vibrant trait, so the UIKit environment sets a background material. Default foreground content then resolves to ForegroundMaterialStyle, and its _apply(to:) stops with an unimplemented failure. iOS and macOS do not set a background material by default, so they are not affected.
Scope
Resolve ForegroundMaterialStyle without a crash until material vibrancy is implemented.
Remove the Example workarounds that clear the background material on visionOS.
Acceptance criteria
The Example apps run on the visionOS Simulator without visionOS-specific workarounds.
Default foreground content on visionOS renders with system colors.
area: exampleExample apps, previews, sample projects, screenshots, or demo assets.area: renderingDisplayList, render backends, renderer hosts, drawing, and effects.impact: crashCrash, assertion, or fatal runtime failure.platform: visionOSvisionOS-specific behavior or support.priority: p1Medium priority.type: bugSomething is not working correctly.
Activity