Pop-Up Buttons

iOS 팝업 버튼의 스타일과 동작을 직접 체험해보세요. 항목 수와 스타일을 변경하면 iPhone 화면에 즉시 반영됩니다.

9:41
●●●● WiFi 🔋
Pop-Up Buttons
Category Selection
Category
Priority Selection
Priority
About

Pop-up buttons let people choose one option from a set of mutually exclusive choices. Tap a pop-up button to see the available options.

⚠️ HIG 위반: 팝업 버튼이 혼란스럽습니다
📚 HIG Guidelines — 직접 체험하기
✓ Do — 올바른 예시
✗ Don't — 나쁜 예시

✓ 이렇게 하세요

  • Use pop-up buttons for mutually exclusive selections
  • Show the current selection clearly
  • Keep the list of options manageable
  • Use descriptive labels

✗ 이렇게 하지 마세요

  • Don't use pop-up buttons for actions (use menus instead)
  • Don't use when there are only 2 options (use toggle)
  • Don't make the list too long (consider a picker)
  • Don't nest pop-up buttons

👆 iPhone 미리보기에서 나쁜 패턴을 직접 확인해보세요

Automatic
Menu
Selection Indicator
SwiftUI Code