d
This commit is contained in:
@@ -16,11 +16,15 @@ extension MicItem {
|
||||
extension MicItem {
|
||||
final class Controller: MPAK.Controller<MicItem.Model> {
|
||||
init(_ id: String? = nil) {
|
||||
/**/print("MicIC.init")
|
||||
var sid = ""
|
||||
if let id {
|
||||
sid = " : \(id)"
|
||||
}
|
||||
/**/print("MicIC.init\(sid)")
|
||||
super.init(
|
||||
MicItem.Model(),
|
||||
debugClassName: "MicICtrl",
|
||||
debugLog: { print($0) }
|
||||
debugLog: { print("\($0)\(sid)") }
|
||||
)
|
||||
|
||||
|
||||
|
||||
@@ -7,9 +7,9 @@ import UIKit
|
||||
|
||||
struct Content: View {
|
||||
var body: some View {
|
||||
MeetupId.V()
|
||||
//MeetupId.V()
|
||||
MicItem.V()
|
||||
Divider()
|
||||
//Divider()
|
||||
MicItem.V("1")
|
||||
MicItem.V("2")
|
||||
}
|
||||
@@ -34,20 +34,20 @@ class AppDelegate: UIResponder, UIApplicationDelegate
|
||||
window?.makeKeyAndVisible()
|
||||
|
||||
/**/print("ИГР App.didFLWO")
|
||||
//testMic1()
|
||||
testMic1()
|
||||
//testMic2()
|
||||
testMic2_id("1")
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 3) {
|
||||
testMic2_id("2")
|
||||
self.testMic2_id("2")
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
func testMic1() {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 1) {
|
||||
Bus.send(Mic.K.isActive, true)
|
||||
}
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
|
||||
DispatchQueue.main.asyncAfter(deadline: .now() + 4) {
|
||||
Bus.send(Mic.K.isActive, false)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user