fix(ios): use Observation environment in settings
parent
4970af6bb9
commit
f3f8aa5397
|
|
@ -59,8 +59,6 @@ struct SettingsTab: View {
|
||||||
|
|
||||||
NavigationLink {
|
NavigationLink {
|
||||||
VoiceWakeWordsSettingsView()
|
VoiceWakeWordsSettingsView()
|
||||||
.environmentObject(self.appModel)
|
|
||||||
.environmentObject(self.voiceWake)
|
|
||||||
} label: {
|
} label: {
|
||||||
LabeledContent(
|
LabeledContent(
|
||||||
"Wake Words",
|
"Wake Words",
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
import SwiftUI
|
import SwiftUI
|
||||||
|
|
||||||
struct VoiceWakeWordsSettingsView: View {
|
struct VoiceWakeWordsSettingsView: View {
|
||||||
@EnvironmentObject private var appModel: NodeAppModel
|
@Environment(NodeAppModel.self) private var appModel
|
||||||
@State private var triggerWords: [String] = VoiceWakePreferences.loadTriggerWords()
|
@State private var triggerWords: [String] = VoiceWakePreferences.loadTriggerWords()
|
||||||
@State private var syncTask: Task<Void, Never>?
|
@State private var syncTask: Task<Void, Never>?
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue