diff --git a/Modules/MeetupIdX/src/MeetupId.Generated.swift b/Modules/MeetupIdX/src/MeetupId.Generated.swift index c553900..8fe80f5 100644 --- a/Modules/MeetupIdX/src/MeetupId.Generated.swift +++ b/Modules/MeetupIdX/src/MeetupId.Generated.swift @@ -54,6 +54,7 @@ extension MeetupId { public init(_ world: World) { self.world = world Self.singleton = self + SectionBus.setupService(ctrl, self, world) SectionGenerated.setupPlatform(ctrl, self, world) } } diff --git a/Modules/MeetupIdX/src/MeetupId.SectionBus.swift b/Modules/MeetupIdX/src/MeetupId.SectionBus.swift new file mode 100644 index 0000000..7a1f4cc --- /dev/null +++ b/Modules/MeetupIdX/src/MeetupId.SectionBus.swift @@ -0,0 +1,16 @@ +extension MeetupId { + enum SectionBus { + static func setupService( + _ ctrl: Controller, + _ service: Service, + _ world: World + ) { + service.any.append(contentsOf: [ + Bus.Debounce(shouldResetText, 0.2, K.M, K.textApp), + Bus.Delay(shouldFinishLoading, 5, K.M, K.finishLoading), + Bus.Sync(shouldEnableJoin, K.M, K.isJoinAvailable), + Bus.Sync(shouldResetLoading, K.M, K.isLoading) + ]) + } + } +} diff --git a/Modules/MeetupIdX/src/MeetupId.V.swift b/Modules/MeetupIdX/src/MeetupId.V.swift index a8822a7..0c76631 100644 --- a/Modules/MeetupIdX/src/MeetupId.V.swift +++ b/Modules/MeetupIdX/src/MeetupId.V.swift @@ -7,15 +7,8 @@ extension MeetupId { @StateObject var isLoading = BusUI.Value(K.isLoading, false) @StateObject var join = BusUI.Button(K.join) @StateObject var textField = BusUI.TextField(K.textApp, K.textUI) - let processors: [Any] public init() { - processors = [ - Bus.Debounce(shouldResetText, 0.2, K.M, K.textApp), - Bus.Delay(shouldFinishLoading, 5, K.M, K.finishLoading), - Bus.Sync(shouldEnableJoin, K.M, K.isJoinAvailable), - Bus.Sync(shouldResetLoading, K.M, K.isLoading) - ] } public var body: some View {