42 lines
997 B
Swift
42 lines
997 B
Swift
import MeetupIdX
|
|
import SwiftUI
|
|
import UIKit
|
|
|
|
struct Content: View {
|
|
var body: some View {
|
|
MeetupId.V("w1")
|
|
Divider()
|
|
MeetupId.V("w2")
|
|
Divider()
|
|
Divider()
|
|
Divider()
|
|
MeetupId.TV("uuid-1")
|
|
Divider()
|
|
MeetupId.TV("uuid-2")
|
|
}
|
|
}
|
|
|
|
@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("ИГР UUID:", UUID().uuidString)
|
|
|
|
return true
|
|
}
|
|
}
|