macOS Segmented Control
macOS Segmented Control
Um macOS Segmented Control é uma curta linha de escolhas unidas. Ele muda uma visão, filtro ou modo bem ligado.
Outro exemplo
Um navegador estilo Finder usa segmentos na barra de ferramentas para visões de ícone, lista, coluna e galeria.
Partes principais
- 01Rótulo visível
- 02Interaction target
- 03Current state
- 04Keyboard behavior
Use-o quando
Use-o para alguns modos ou filtros iguais com rótulos curtos. Cada escolha deve mudar rapidamente o mesmo conteúdo próximo.
Não o use quando
Evite rótulos longos ou que quebram em várias linhas, muitas opções e destinos que não têm a ver com o assunto. Não esconda um efeito até depois de uma confirmação em separado.
Nome usado no código
NSSegmentedControl / SwiftUI Picker with segmented style Antes de lançar
Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion.
Outcome: Complete the task with macOS Segmented Control (macOS Segmented Control). User context: Um navegador estilo Finder usa segmentos na barra de ferramentas para visões de ícone, lista, coluna e galeria. macOS concept or control: macOS Segmented Control (macOS Segmented Control). Why it fits: Use-o para alguns modos ou filtros iguais com rótulos curtos. Cada escolha deve mudar rapidamente o mesmo conteúdo próximo. Do not use it when: Evite rótulos longos ou que quebram em várias linhas, muitas opções e destinos que não têm a ver com o assunto. Não esconda um efeito até depois de uma confirmação em separado. Platform requirements: List the supported macOS versions. Say whether AppKit or SwiftUI owns each part and how they connect. Define window, menu, focus, keyboard, saved state, restore, and multi-window behavior. Platform accessibility and resilience: Use the right accessibility APIs. Check VoiceOver and Full Keyboard Access. Support localization, contrast, and reduced motion when needed. Keep user state after a relaunch. Acceptance criteria: Check the behavior on supported macOS versions with a keyboard and VoiceOver. Window resizing, focus, state restore, and AppKit or SwiftUI integration work in the normal macOS way. Evidence and limits (evidence boundary): É oficial para essa fonte. Outras plataformas ou equipes podem usar o termo de outra maneira. Unknowns to confirm: Supported macOS versions, AppKit or SwiftUI structure, and window model. Also confirm sandbox and entitlement limits, save rules, and the accessibility goal.
Conferir este pedido
Review how macOS Segmented Control (macOS Segmented Control) is used now. Definition: Um macOS Segmented Control é uma curta linha de escolhas unidas. Ele muda uma visão, filtro ou modo bem ligado. Release checks: Check the supported macOS versions and AppKit or SwiftUI integration. Check standard focus and keyboard behavior. Also check VoiceOver, Full Keyboard Access, window resizing, and multi-window state. When needed, check restore, localization, and reduced motion. Before changing code, list the evidence, gaps, severity, and the smallest safe fix.