- hint 수정
- 검색 통합 결과 - 제목 2줄까지만 허용
This commit is contained in:
Yu Sung 2025-03-31 10:43:52 +09:00
parent cfcc67df96
commit b8ea93ecd4
4 changed files with 9 additions and 2 deletions

View File

@ -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)

View File

@ -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,

View File

@ -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))

View File

@ -155,6 +155,9 @@ struct SearchView: View {
viewModel.keyword = UserDefaults.string(forKey: .searchChannel)
}
}
.onTapGesture {
hideKeyboard()
}
}
}
}