Alerts

iOS Alert 다이얼로그의 다양한 구성을 직접 체험해보세요. 컨트롤 패널에서 버튼 개수, 파괴적 액션, 텍스트 필드 등을 변경하면 iPhone 화면에 즉시 반영됩니다.

9:41
●●●● WiFi 🔋
Alerts
Trigger Alert
Current Configuration
  • Button Count 2
  • Destructive Off
  • Text Field Off
  • Layout Side by Side
Common Patterns
Alert Title
This is an alert message that provides important information.
⚠️ HIG 위반: Alert 사용이 부적절합니다
📚 HIG Guidelines — 직접 체험하기
✓ Do — 올바른 예시
✗ Don't — 나쁜 예시

✓ 이렇게 하세요

  • Use alerts only for important information that requires acknowledgment
  • Keep alert titles short and descriptive
  • Use a two-button alert for decisions
  • Place the preferred action on the trailing side (right)
  • Use destructive style for actions that delete or remove data
  • Use Cancel to let people abandon the action

✗ 이렇게 하지 마세요

  • Don't use alerts for non-essential information
  • Don't overuse alerts — they interrupt the user's flow
  • Don't use an alert when an action sheet is more appropriate
  • Don't include more than 3 buttons in a single alert
  • Don't use vague titles like "Error" or "Warning"
  • Don't use "Yes" / "No" — use descriptive verb labels

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

Default
Error
Delete
Save
Has Destructive Button
Has Text Field
SwiftUI Code