|
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253 |
- import BusX
- import MeetupIdX
- import MicX
- import SwiftUI
- import UIKit
-
- struct Content: View {
- var body: some View {
- MeetupId.V()
- Divider()
- MicItem.V()
- }
- }
-
- @UIApplicationMain
- class AppDelegate: UIResponder, UIApplicationDelegate
- {
- let meetupIS = MeetupId.Service(.init())
- var window: UIWindow?
-
- func application(
- _ application: UIApplication,
- didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?
- ) -> Bool {
- window = UIWindow(frame: UIScreen.main.bounds)
- let vc = UIViewController()
- addSwiftUIViewAsChild(swiftUIView: Content(), parent: vc.view)
- vc.view.backgroundColor = .white
- window?.rootViewController = vc
- window?.backgroundColor = UIColor.white
- window?.makeKeyAndVisible()
-
- /**/print("ИГР App.didFLWO")
- //testMic1()
- testMic2()
- return true
- }
-
- func testMic1() {
- DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
- Bus.send(Mic.K.isActive, true)
- }
- DispatchQueue.main.asyncAfter(deadline: .now() + 5) {
- Bus.send(Mic.K.isActive, false)
- }
- }
-
- func testMic2() {
- DispatchQueue.main.asyncAfter(deadline: .now() + 2) {
- Bus.send(Mic.K.activityDate, Date() + 5)
- }
- }
- }
|