From b8ea93ecd4b60fc75739fed228c01ba91ca60a64 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 31 Mar 2025 10:43:52 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=80=EC=83=89=20-=20hint=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=20-=20=EA=B2=80=EC=83=89=20=ED=86=B5=ED=95=A9=20?= =?UTF-8?q?=EA=B2=B0=EA=B3=BC=20-=20=EC=A0=9C=EB=AA=A9=202=EC=A4=84?= =?UTF-8?q?=EA=B9=8C=EC=A7=80=EB=A7=8C=20=ED=97=88=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Sources/Content/Main/V2/Home/ContentMainTabHomeView.swift | 2 +- SodaLive/Sources/CustomView/FocusedTextField.swift | 2 +- SodaLive/Sources/Search/SearchUnifiedView.swift | 4 ++++ SodaLive/Sources/Search/SearchView.swift | 3 +++ 4 files changed, 9 insertions(+), 2 deletions(-) diff --git a/SodaLive/Sources/Content/Main/V2/Home/ContentMainTabHomeView.swift b/SodaLive/Sources/Content/Main/V2/Home/ContentMainTabHomeView.swift index 2222259..70a0427 100644 --- a/SodaLive/Sources/Content/Main/V2/Home/ContentMainTabHomeView.swift +++ b/SodaLive/Sources/Content/Main/V2/Home/ContentMainTabHomeView.swift @@ -57,7 +57,7 @@ struct ContentMainTabHomeView: View { HStack(spacing: 0) { Image("ic_title_search_black") - Text("채널명을 입력해 보세요") + Text("검색어를 2글자 이상 입력하세요") .font(.custom(Font.medium.rawValue, size: 13.3)) .foregroundColor(Color.gray55) .keyboardType(.default) diff --git a/SodaLive/Sources/CustomView/FocusedTextField.swift b/SodaLive/Sources/CustomView/FocusedTextField.swift index 9602278..6a8c618 100644 --- a/SodaLive/Sources/CustomView/FocusedTextField.swift +++ b/SodaLive/Sources/CustomView/FocusedTextField.swift @@ -37,7 +37,7 @@ struct FocusedTextField: UIViewRepresentable { textField.autocapitalizationType = .none textField.autocorrectionType = .no - let placeholder = "검색" + let placeholder = "검색어를 2글자 이상 입력하세요" textField.placeholder = placeholder textField.attributedPlaceholder = NSAttributedString( string: placeholder, diff --git a/SodaLive/Sources/Search/SearchUnifiedView.swift b/SodaLive/Sources/Search/SearchUnifiedView.swift index 2c3b4ec..ccf2f54 100644 --- a/SodaLive/Sources/Search/SearchUnifiedView.swift +++ b/SodaLive/Sources/Search/SearchUnifiedView.swift @@ -138,6 +138,8 @@ struct SearchContentItemView: View { Text(item.title) .font(.custom(Font.medium.rawValue, size: 13.3)) .foregroundColor(Color.grayee) + .multilineTextAlignment(.leading) + .lineLimit(2) Text(item.nickname) .font(.custom(Font.medium.rawValue, size: 10)) @@ -173,6 +175,8 @@ struct SearchSeriesItemView: View { Text(item.title) .font(.custom(Font.medium.rawValue, size: 13.3)) .foregroundColor(Color.grayee) + .multilineTextAlignment(.leading) + .lineLimit(2) Text(item.nickname) .font(.custom(Font.medium.rawValue, size: 10)) diff --git a/SodaLive/Sources/Search/SearchView.swift b/SodaLive/Sources/Search/SearchView.swift index 46f99b5..47da4e8 100644 --- a/SodaLive/Sources/Search/SearchView.swift +++ b/SodaLive/Sources/Search/SearchView.swift @@ -155,6 +155,9 @@ struct SearchView: View { viewModel.keyword = UserDefaults.string(forKey: .searchChannel) } } + .onTapGesture { + hideKeyboard() + } } } }