d
This commit is contained in:
@@ -9,7 +9,6 @@ model:
|
||||
service:
|
||||
actions:
|
||||
busModel
|
||||
🚀shouldResetLoading: Bus.send(K.isLoading, v)
|
||||
pipes:
|
||||
finishLoading: [toggle, K.finishLoading]
|
||||
isLoading: [recent, K.isLoading]
|
||||
|
||||
@@ -85,10 +85,6 @@ extension MeetupId {
|
||||
ctrl.m
|
||||
.sink { v in Bus.send("MeetupId", v) }
|
||||
.store(in: &service.subscriptions)
|
||||
ctrl.m
|
||||
.compactMap { shouldResetLoading($0) }
|
||||
.sink { v in Bus.send(K.isLoading, v) }
|
||||
.store(in: &service.subscriptions)
|
||||
|
||||
|
||||
// MARK: - SectionGenerated Service Pipes
|
||||
|
||||
@@ -8,9 +8,11 @@ extension MeetupId {
|
||||
@StateObject var join = BusUI.Button(K.join)
|
||||
@StateObject var textField = BusUI.TextField(K.textApp, K.textUI)
|
||||
let processors: [Any] = [
|
||||
Bus.Sync(shouldEnableJoin, K.M, K.isJoinAvailable),
|
||||
Bus.Debounce(formatId, 0.2, K.textUI, K.textApp),
|
||||
Bus.Delay(finishLoading, 5, K.isLoading, K.finishLoading),
|
||||
Bus.Sync(shouldEnableJoin, K.M, K.isJoinAvailable),
|
||||
Bus.Sync(shouldResetLoading, K.M, K.isLoading)
|
||||
//🚀shouldResetLoading: Bus.send(K.isLoading, v)
|
||||
]
|
||||
|
||||
public init() { }
|
||||
|
||||
@@ -1,6 +1,15 @@
|
||||
import MeetupIdX
|
||||
import SwiftUI
|
||||
import UIKit
|
||||
|
||||
struct Content: View {
|
||||
var body: some View {
|
||||
MeetupId.V()
|
||||
Divider()
|
||||
MeetupId.V()
|
||||
}
|
||||
}
|
||||
|
||||
@UIApplicationMain
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate
|
||||
{
|
||||
@@ -13,7 +22,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate
|
||||
) -> Bool {
|
||||
window = UIWindow(frame: UIScreen.main.bounds)
|
||||
let vc = UIViewController()
|
||||
addSwiftUIViewAsChild(swiftUIView: MeetupId.V(), parent: vc.view)
|
||||
addSwiftUIViewAsChild(swiftUIView: Content(), parent: vc.view)
|
||||
vc.view.backgroundColor = .white
|
||||
window?.rootViewController = vc
|
||||
window?.backgroundColor = UIColor.white
|
||||
|
||||
Reference in New Issue
Block a user