This commit is contained in:
Arkadiusz Fal 2022-06-14 18:10:54 +02:00
parent 7a7e265ba1
commit 1c71520d6f

View File

@ -9,6 +9,7 @@ struct TrendingCountry: View {
@State private var query: String = "" @State private var query: String = ""
@State private var selection: Country? @State private var selection: Country?
@Environment(\.colorScheme) private var colorScheme
@Environment(\.presentationMode) private var presentationMode @Environment(\.presentationMode) private var presentationMode
var body: some View { var body: some View {
@ -30,8 +31,8 @@ struct TrendingCountry: View {
countriesList countriesList
} }
#if os(tvOS) #if os(tvOS)
.searchable(text: $query, placement: .automatic, prompt: Text(TrendingCountry.prompt)) .searchable(text: $query, placement: .automatic, prompt: Text(Self.prompt))
.background(Color.black) .background(Color.background(scheme: colorScheme))
#endif #endif
} }