검색
- hint 수정 - 검색 통합 결과 - 제목 2줄까지만 허용
This commit is contained in:
@@ -57,7 +57,7 @@ struct ContentMainTabHomeView: View {
|
|||||||
HStack(spacing: 0) {
|
HStack(spacing: 0) {
|
||||||
Image("ic_title_search_black")
|
Image("ic_title_search_black")
|
||||||
|
|
||||||
Text("채널명을 입력해 보세요")
|
Text("검색어를 2글자 이상 입력하세요")
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color.gray55)
|
.foregroundColor(Color.gray55)
|
||||||
.keyboardType(.default)
|
.keyboardType(.default)
|
||||||
|
@@ -37,7 +37,7 @@ struct FocusedTextField: UIViewRepresentable {
|
|||||||
textField.autocapitalizationType = .none
|
textField.autocapitalizationType = .none
|
||||||
textField.autocorrectionType = .no
|
textField.autocorrectionType = .no
|
||||||
|
|
||||||
let placeholder = "검색"
|
let placeholder = "검색어를 2글자 이상 입력하세요"
|
||||||
textField.placeholder = placeholder
|
textField.placeholder = placeholder
|
||||||
textField.attributedPlaceholder = NSAttributedString(
|
textField.attributedPlaceholder = NSAttributedString(
|
||||||
string: placeholder,
|
string: placeholder,
|
||||||
|
@@ -138,6 +138,8 @@ struct SearchContentItemView: View {
|
|||||||
Text(item.title)
|
Text(item.title)
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color.grayee)
|
.foregroundColor(Color.grayee)
|
||||||
|
.multilineTextAlignment(.leading)
|
||||||
|
.lineLimit(2)
|
||||||
|
|
||||||
Text(item.nickname)
|
Text(item.nickname)
|
||||||
.font(.custom(Font.medium.rawValue, size: 10))
|
.font(.custom(Font.medium.rawValue, size: 10))
|
||||||
@@ -173,6 +175,8 @@ struct SearchSeriesItemView: View {
|
|||||||
Text(item.title)
|
Text(item.title)
|
||||||
.font(.custom(Font.medium.rawValue, size: 13.3))
|
.font(.custom(Font.medium.rawValue, size: 13.3))
|
||||||
.foregroundColor(Color.grayee)
|
.foregroundColor(Color.grayee)
|
||||||
|
.multilineTextAlignment(.leading)
|
||||||
|
.lineLimit(2)
|
||||||
|
|
||||||
Text(item.nickname)
|
Text(item.nickname)
|
||||||
.font(.custom(Font.medium.rawValue, size: 10))
|
.font(.custom(Font.medium.rawValue, size: 10))
|
||||||
|
@@ -155,6 +155,9 @@ struct SearchView: View {
|
|||||||
viewModel.keyword = UserDefaults.string(forKey: .searchChannel)
|
viewModel.keyword = UserDefaults.string(forKey: .searchChannel)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
.onTapGesture {
|
||||||
|
hideKeyboard()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user