diff --git a/components/root/root.swift b/components/root/root.swift index 7f17acd..9ab69b4 100644 --- a/components/root/root.swift +++ b/components/root/root.swift @@ -1,3 +1,4 @@ +@MainActor class RootComponent { let ctrl = DialectController(RootContext()) static private(set) weak var singleton: RootComponent? diff --git a/components/root/rootVM.swift b/components/root/rootVM.swift index 5823662..048df0c 100644 --- a/components/root/rootVM.swift +++ b/components/root/rootVM.swift @@ -1,5 +1,6 @@ import Combine +@MainActor final class RootVM: ObservableObject { @Published var countText = ""