Implement foreground material vibrancy

Aberta
#1,178 0 comentários 0 reações 0 responsáveis Ver no GitHub

Mantenedores costumam responder em até 1 dia

Ninguém assumiu esta issue ainda.

Avaliação

Dificuldade
4/5
Tempo estimado
3-5 dias
Facilidade para iniciantes
55/100
Tipo de issue
Bug
Clareza
Razoavelmente clara
Status de atividade
Ativa
Stack de tecnologia
swift
Domínio
frontend

Direção de pesquisa

Start by locating ForegroundMaterialStyle._apply(to:) and tracing how the environment's background material is resolved, including the content and separator styles that use this style. Remove the fallback and warning as scoped, then verify the acceptance criteria: default foreground content on visionOS and content inside background materials on iOS and macOS should render with vibrant colors matching SwiftUI.

Escrita pelo modelo de indexação a partir do texto da issue.

Descrição

area: graphics platform: visionOS priority: p2 type: feature

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.
Linguagem predominante
Swift
Estrelas
2.5k
Forks
84
Merge médio
5h 5min
PRs com merge (30d)
81

Preparar o ambiente

Primeiros passos

  1. Leia a issue inteira e depois o guia de contribuição do projeto.
  2. Comente na issue dizendo que vai assumir — evita que duas pessoas façam o mesmo trabalho.
  3. Faça um fork do repositório e trabalhe em uma branch.
  4. Abra um pull request que referencie o número da issue.

Mais de OpenSwiftUIProject/OpenSwiftUI

Todas as issues de OpenSwiftUIProject/OpenSwiftUI

Issues semelhantes

Mais issues de Swift

Receba novas issues na sua caixa de entrada

Um resumo curto de issues do GitHub para quem está começando.