main actor for cmp and vm
This commit is contained in:
1 parent
6df3ac00c6
commit
85094d00fa
2 files changed
+2
No files matched your search
@@ -1,3 +1,4 @@
|
|||||||
|
@MainActor
|
||||||
class RootComponent {
|
class RootComponent {
|
||||||
let ctrl = DialectController(RootContext())
|
let ctrl = DialectController(RootContext())
|
||||||
static private(set) weak var singleton: RootComponent?
|
static private(set) weak var singleton: RootComponent?
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
import Combine
|
import Combine
|
||||||
|
|
||||||
|
@MainActor
|
||||||
final class RootVM: ObservableObject {
|
final class RootVM: ObservableObject {
|
||||||
@Published var countText = ""
|
@Published var countText = ""
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user