Skip to content

Fix the foreground material style crash on visionOS #1173

Closed

Description

@Kyle-Ye

Summary

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.

Activity

  1. added
    type: bug
    area: rendering
    platform: visionOS
    priority: p1
    impact: crash
    on Oct 17, 2026
  2. added
    area: example
    on Oct 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area: examplearea: renderingimpact: crashplatform: visionOSpriority: p1type: bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions