Text Fields

iOS 텍스트 필드의 Plain, Rounded 스타일을 직접 체험해보세요. 컨트롤 패널에서 속성을 변경하면 iPhone 화면에 즉시 반영됩니다.

9:41
●●●● WiFi 🔋
Text Fields
Account Information
Name
Email
Password
Keyboard Type
Input
ABC
⚠️ HIG 위반: 텍스트 필드가 부적절합니다
📚 HIG Guidelines — 직접 체험하기
✓ Do — 올바른 예시
✗ Don't — 나쁜 예시

✓ 이렇게 하세요

  • Use clear, descriptive placeholder text
  • Use the appropriate keyboard type for the input
  • Show a clear button for easily erasable fields
  • Use SecureField for passwords and sensitive data
  • Validate input and provide helpful error messages
  • Group related fields in a Form or List

✗ 이렇게 하지 마세요

  • Don't use placeholder text as a substitute for labels
  • Don't use the default keyboard for email or number inputs
  • Don't show a plain TextField for password entry
  • Don't make text fields too narrow to display content
  • Don't require users to type information that can be auto-filled

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

Default
Email
Number
Show Clear Button
Show Secure Field
SwiftUI Code
Form { TextField("Name", text: $name) TextField("Email", text: $email) .keyboardType(.emailAddress) SecureField("Password", text: $password) }