Михаил Капелько 10 months ago
parent
commit
33d81438f5
2 changed files with 12 additions and 8 deletions
  1. +6
    -2
      Modules/MicX/MicItem/src/MicItem.WillBe.swift
  2. +6
    -6
      src/App.swift

+ 6
- 2
Modules/MicX/MicItem/src/MicItem.WillBe.swift View File

@@ -16,11 +16,15 @@ extension MicItem {
extension MicItem { extension MicItem {
final class Controller: MPAK.Controller<MicItem.Model> { final class Controller: MPAK.Controller<MicItem.Model> {
init(_ id: String? = nil) { init(_ id: String? = nil) {
/**/print("MicIC.init")
var sid = ""
if let id {
sid = " : \(id)"
}
/**/print("MicIC.init\(sid)")
super.init( super.init(
MicItem.Model(), MicItem.Model(),
debugClassName: "MicICtrl", debugClassName: "MicICtrl",
debugLog: { print($0) }
debugLog: { print("\($0)\(sid)") }
) )






+ 6
- 6
src/App.swift View File

@@ -7,9 +7,9 @@ import UIKit


struct Content: View { struct Content: View {
var body: some View { var body: some View {
MeetupId.V()
//MeetupId.V()
MicItem.V() MicItem.V()
Divider()
//Divider()
MicItem.V("1") MicItem.V("1")
MicItem.V("2") MicItem.V("2")
} }
@@ -34,20 +34,20 @@ class AppDelegate: UIResponder, UIApplicationDelegate
window?.makeKeyAndVisible() window?.makeKeyAndVisible()


/**/print("ИГР App.didFLWO") /**/print("ИГР App.didFLWO")
//testMic1()
testMic1()
//testMic2() //testMic2()
testMic2_id("1") testMic2_id("1")
DispatchQueue.main.asyncAfter(deadline: .now() + 3) { DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
testMic2_id("2")
self.testMic2_id("2")
} }
return true return true
} }
func testMic1() { func testMic1() {
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
Bus.send(Mic.K.isActive, true) Bus.send(Mic.K.isActive, true)
} }
DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
DispatchQueue.main.asyncAfter(deadline: .now() + 4) {
Bus.send(Mic.K.isActive, false) Bus.send(Mic.K.isActive, false)
} }
} }


Loading…
Cancel
Save