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