d
This commit is contained in:
@@ -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)") }
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user