Михаил Капелько 10 months ago
parent
commit
c17a15dac9
4 changed files with 13 additions and 7 deletions
  1. +0
    -1
      Modules/MeetupIdX/MeetupId.yml
  2. +0
    -4
      Modules/MeetupIdX/src/MeetupId.Generated.swift
  3. +3
    -1
      Modules/MeetupIdX/src/MeetupId.V.swift
  4. +10
    -1
      src/App.swift

+ 0
- 1
Modules/MeetupIdX/MeetupId.yml View File

@@ -9,7 +9,6 @@ model:
service:
actions:
busModel
🚀shouldResetLoading: Bus.send(K.isLoading, v)
pipes:
finishLoading: [toggle, K.finishLoading]
isLoading: [recent, K.isLoading]


+ 0
- 4
Modules/MeetupIdX/src/MeetupId.Generated.swift View File

@@ -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


+ 3
- 1
Modules/MeetupIdX/src/MeetupId.V.swift View File

@@ -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() { }


+ 10
- 1
src/App.swift View File

@@ -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


Loading…
Cancel
Save