Caps-iOS/Caps/Views/SearchField.swift

20 lines
437 B
Swift
Raw Normal View History

2022-06-10 21:20:49 +02:00
import SwiftUI
import SFSafeSymbols
struct SearchField: View {
@Binding
var searchString: String
var body: some View {
2022-06-11 11:27:56 +02:00
FancyTextField(text: $searchString, icon: .magnifyingglass, placeholder: "Search...")
2022-06-10 21:20:49 +02:00
}
}
struct SearchField_Previews: PreviewProvider {
static var previews: some View {
SearchField(searchString: .constant(""))
.previewLayout(.fixed(width: 375, height: 50))
}
}