17 lines
367 B
Swift
17 lines
367 B
Swift
@MainActor
|
|
class RootComponent {
|
|
let ctrl = DialectController(RootContext())
|
|
static private(set) weak var singleton: RootComponent?
|
|
|
|
init() {
|
|
Self.singleton = self
|
|
rootRegisterEffects(ctrl)
|
|
rootRegisterShoulds(ctrl)
|
|
otherSetupConsoleLogging(ctrl, "Root")
|
|
}
|
|
|
|
func setup() {
|
|
rootSet(F.didSetup, true)
|
|
}
|
|
}
|