[SwiftUI] TextEditor

RudinP·2025년 7월 2일
0

Study

목록 보기
309/325


  • 여러 줄 입력에 특화됨.
  • 기본적으로 너비와 높이 전체를 채움 (safeArea 제외)
    • 따라서 .padding()이 반필수
  • 자동 스크롤 지원
  • 키보드가 표시되면 자동으로 가려지지 않도록 처리됨
TextEditor(text: $content)
	.padding()
    //.font()
    //.foregroundColor()
    //.multilineTextAlignment()
    //.lineSpacing()
    //.keyboardType()
    //.disableAutocorrection()
profile
iOS 개발자가 되기 위한 스터디룸...

0개의 댓글