mirror of
https://github.com/yattee/yattee.git
synced 2025-04-26 00:26:33 +00:00
Fix #166
This commit is contained in:
parent
7a7e265ba1
commit
1c71520d6f
@ -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
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user