Notice
Recent Posts
Recent Comments
Link
| 일 | 월 | 화 | 수 | 목 | 금 | 토 |
|---|---|---|---|---|---|---|
| 1 | 2 | 3 | 4 | 5 | 6 | |
| 7 | 8 | 9 | 10 | 11 | 12 | 13 |
| 14 | 15 | 16 | 17 | 18 | 19 | 20 |
| 21 | 22 | 23 | 24 | 25 | 26 | 27 |
| 28 | 29 | 30 | 31 |
Tags
- 스위프트
- Observable
- Protocol
- Xcode
- tableView
- UICollectionView
- swift documentation
- SWIFT
- swiftUI
- Clean Code
- map
- HIG
- ios
- Refactoring
- rxswift
- Human interface guide
- 리팩토링
- clean architecture
- 클린 코드
- RxCocoa
- 리펙토링
- scrollview
- UITextView
- 애니메이션
- uitableview
- ribs
- uiscrollview
- combine
- MVVM
- collectionview
Archives
- Today
- Total
김종권의 iOS 앱 개발 알아가기
[iOS - swift] UITextView에 Placeholder 추가 (STTextView 프레임워크) 본문
iOS 응용 (swift)
[iOS - swift] UITextView에 Placeholder 추가 (STTextView 프레임워크)
jake-kim 2021. 2. 3. 23:21UITextView
- UITextField는 UI가 한 줄이지만 UITextView는 "TextArea"개념 (넓은 면적)
- UITextView는 placeholder를 제공하지 않음
- placeholder를 구현하려고 하면, 입력 시 한글 자모가 불리되는 현상 발생
STTextView 프레임워크
- placeholder가 구현된 프레임워크
- 의존성
pod 'STTextView'
사용
- UITextView 추가

- class - STTextView로 설정

- placeholder에 입력 (font는 text와 동일한 font를 갖음)

- cursor 색 설정 - tint color

'iOS 응용 (swift)' 카테고리의 다른 글
| [iOS - swift] 위치 이동 테스트 (simulate location, .gpx) (0) | 2021.02.09 |
|---|---|
| [iOS - swift] FloatingPanel, bottom sheet (0) | 2021.02.06 |
| [iOS - swift] containerVC와 ChildVC 다루는 방법, 투명 뷰 (PassThroughView) (0) | 2021.02.03 |
| [iOS - swift] 문자열 파일 저장하기 (userDomainMask, documentDirectory) (0) | 2021.02.02 |
| [iOS - swift] AVFoundation, Camera 다루는 방법 (3) | 2021.01.26 |
Comments