Skip to content

Commit

Permalink
[Feat] Team-Smeme#86 - textView 커서 색깔 커스텀
Browse files Browse the repository at this point in the history
  • Loading branch information
cchanmi committed Jan 10, 2023
1 parent 09798ba commit 06e8153
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -241,14 +241,17 @@ extension DiaryForeignViewController: UITextViewDelegate {
func textViewDidBeginEditing(_ textView: UITextView) {
if textView.text.isEmpty {
placeHolderLabel.isHidden = false
textView.tintColor = .clear
}
}

func textViewDidChange(_ textView: UITextView) {
if textView.text.isEmpty {
placeHolderLabel.isHidden = false
textView.tintColor = .clear
} else {
placeHolderLabel.isHidden = true
textView.tintColor = .primary
}
}
}

0 comments on commit 06e8153

Please sign in to comment.