Skip to content

Implement foreground material vibrancy #1178

Open

Description

@Kyle-Ye

Summary

ForegroundMaterialStyle does not apply material vibrancy. It reports an unimplemented warning and falls back to SystemColorsStyle (#1173). Default foreground content uses this style when the environment has a background material. visionOS windows report a vibrant trait and set a background material, so all default foreground content on visionOS renders with plain system colors instead of vibrant colors. Other platforms are affected inside views with a background material.

Scope

  • Implement ForegroundMaterialStyle._apply(to:) with material vibrancy for the background material in the environment.
  • Apply the same vibrancy to the content and separator styles that resolve through ForegroundMaterialStyle.
  • Remove the SystemColorsStyle fallback and the unimplemented warning.

Acceptance criteria

  • Default foreground content on visionOS renders with vibrant colors that match SwiftUI.
  • Foreground content inside a background material renders with vibrant colors on iOS and macOS.

Activity

  1. added
    type: featureNew API, behavior, platform support, or user-facing capability.
    area: graphicsColor, shape, gradient, image, symbols, and graphics primitives.
    platform: visionOSvisionOS-specific behavior or support.
    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: graphicsColor, shape, gradient, image, symbols, and graphics primitives.platform: visionOSvisionOS-specific behavior or support.priority: p2Low priority.type: featureNew API, behavior, platform support, or user-facing capability.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions