From 85094d00fa0ac6bf93fcd80b03c712493950019f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=9C=D0=B8=D1=85=D0=B0=D0=B8=D0=BB=20=D0=9A=D0=B0=D0=BF?= =?UTF-8?q?=D0=B5=D0=BB=D1=8C=D0=BA=D0=BE?= Date: Fri, 16 Oct 2026 14:14:29 +0300 Subject: [PATCH] main actor for cmp and vm --- components/root/root.swift | 1 + components/root/rootVM.swift | 1 + 2 files changed, 2 insertions(+) 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 = ""