fix(ios): use Observation environment in settings
This commit is contained in:
@@ -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>?
|
||||
|
||||
|
||||
Reference in New Issue
Block a user