macOS Stepper
macOS Stepper
Um macOS Stepper tem um botão para adicionar e outro para subtrair. Ele muda um valor dentro de limites definidos por um passo fixo.
Um exemplo real
Um inspetor de layout muda o grid de quatro para cinco colunas. O usuário não precisa digitar um número.
Partes principais
- 01Rótulo persistente
- 02Input control
- 03Hint or format
- 04Validation message
Use-o quando
Use-o para um número com limites claros e passos pequenos. Funciona melhor quando as pessoas mudam um ou dois passos por vez.
Não o use quando
Evite barras muito largas ou suaves e mudanças grandes e rápidas. Adicione um campo de números quando as pessoas precisam digitar ou comparar valores exatos.
Nome usado no código
AppKit NSStepper / SwiftUI Stepper 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 Stepper (macOS Stepper). User context: Um inspetor de layout muda o grid de quatro para cinco colunas. O usuário não precisa digitar um número. macOS concept or control: macOS Stepper (macOS Stepper). Why it fits: Use-o para um número com limites claros e passos pequenos. Funciona melhor quando as pessoas mudam um ou dois passos por vez. Do not use it when: Evite barras muito largas ou suaves e mudanças grandes e rápidas. Adicione um campo de números quando as pessoas precisam digitar ou comparar valores exatos. 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 Stepper (macOS Stepper) is used now. Definition: Um macOS Stepper tem um botão para adicionar e outro para subtrair. Ele muda um valor dentro de limites definidos por um passo fixo. 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.