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