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