mirror of
https://github.com/yattee/yattee.git
synced 2024-11-10 08:18:19 +00:00
20 lines
424 B
Swift
20 lines
424 B
Swift
|
import SwiftUI
|
||
|
|
||
|
struct SearchView: View {
|
||
|
@State var query = ""
|
||
|
@ObservedObject private var provider = SearchedVideosProvider()
|
||
|
|
||
|
var body: some View {
|
||
|
VStack {
|
||
|
SearchedVideosView(provider: provider, query: $query)
|
||
|
.searchable(text: $query)
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
struct SearchView_Previews: PreviewProvider {
|
||
|
static var previews: some View {
|
||
|
SearchView()
|
||
|
}
|
||
|
}
|