|
@@ -1,3 +1,4 @@ |
|
|
|
|
|
import BusX |
|
|
import MeetupIdX |
|
|
import MeetupIdX |
|
|
import MicX |
|
|
import MicX |
|
|
import SwiftUI |
|
|
import SwiftUI |
|
@@ -14,23 +15,32 @@ struct Content: View { |
|
|
@UIApplicationMain |
|
|
@UIApplicationMain |
|
|
class AppDelegate: UIResponder, UIApplicationDelegate |
|
|
class AppDelegate: UIResponder, UIApplicationDelegate |
|
|
{ |
|
|
{ |
|
|
let meetupIS = MeetupId.Service(.init()) |
|
|
|
|
|
var window: UIWindow? |
|
|
|
|
|
|
|
|
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() |
|
|
|
|
|
|
|
|
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("ИГР UUID:", UUID().uuidString) |
|
|
|
|
|
|
|
|
|
|
|
return true |
|
|
|
|
|
|
|
|
/**/print("ИГР App.didFLWO") |
|
|
|
|
|
testMic1() |
|
|
|
|
|
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) |
|
|
} |
|
|
} |
|
|
|
|
|
} |
|
|
} |
|
|
} |