Convert remaining navigation links
This commit is contained in:
committed by
William Casarin
parent
8258c5beb0
commit
0018e7ad57
@@ -14,6 +14,7 @@ struct SearchHomeView: View {
|
||||
@StateObject var model: SearchHomeModel
|
||||
@State var search: String = ""
|
||||
@FocusState private var isFocused: Bool
|
||||
@EnvironmentObject var navigationCoordinator: NavigationCoordinator
|
||||
|
||||
let preferredLanguages = Set(Locale.preferredLanguages.map { localeToLanguage($0) })
|
||||
|
||||
@@ -67,6 +68,7 @@ struct SearchHomeView: View {
|
||||
return preferredLanguages.contains(note_lang)
|
||||
}
|
||||
)
|
||||
.environmentObject(navigationCoordinator)
|
||||
.refreshable {
|
||||
// Fetch new information by unsubscribing and resubscribing to the relay
|
||||
model.unsubscribe()
|
||||
|
||||
Reference in New Issue
Block a user