Skip to content

Commit

Permalink
feat #394: toast view 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
otoolz committed Jan 12, 2024
1 parent e2afd47 commit 7bf9a3a
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -361,6 +361,8 @@ extension TravelVC: UITextFieldDelegate {
func textField(_ textField: UITextField, shouldChangeCharactersIn range: NSRange, replacementString string: String) -> Bool {
let text = textField.text ?? ""
if text.count + string.count > Constants.titleLimit {
let textLimitToast = TLToastView(type: .failure, message: Constants.titleLimitToastMessage)
textLimitToast.show(in: self.view)
return false
}
return true
Expand Down

0 comments on commit 7bf9a3a

Please sign in to comment.