From 7bf9a3a54e0251457fdff8d9dde50396dff7c982 Mon Sep 17 00:00:00 2001 From: otoolz Date: Sat, 13 Jan 2024 05:22:04 +0900 Subject: [PATCH] =?UTF-8?q?feat=20#394:=20toast=20view=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Feature/TravelFeature/TravelScene/VC/TravelVC.swift | 2 ++ 1 file changed, 2 insertions(+) diff --git a/iOS/traveline/Sources/Feature/TravelFeature/TravelScene/VC/TravelVC.swift b/iOS/traveline/Sources/Feature/TravelFeature/TravelScene/VC/TravelVC.swift index 9a6d580f..36881e8a 100644 --- a/iOS/traveline/Sources/Feature/TravelFeature/TravelScene/VC/TravelVC.swift +++ b/iOS/traveline/Sources/Feature/TravelFeature/TravelScene/VC/TravelVC.swift @@ -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