Main UI in Shared (KlottrRoot.kt) that also work on iOS
This commit is contained in:
@@ -11,10 +11,18 @@ import UIKit
|
||||
import GoogleSignIn
|
||||
import shared
|
||||
|
||||
@main
|
||||
class AppDelegate: UIResponder, UIApplicationDelegate {
|
||||
var window: UIWindow?
|
||||
|
||||
func application(_ application: UIApplication,
|
||||
didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||
PlatformAuthStorage.shared.install(delegate: KeychainStorage())
|
||||
|
||||
window = UIWindow(frame: UIScreen.main.bounds)
|
||||
window?.rootViewController = MainKt.MainViewController() // adjust pkg
|
||||
window?.makeKeyAndVisible()
|
||||
|
||||
return true
|
||||
}
|
||||
func application(_ app: UIApplication,
|
||||
|
||||
@@ -27,5 +27,6 @@
|
||||
<string>508890452239-66lqrsbphlmqltb6aoe3c0d6dlgtjse8.apps.googleusercontent.com</string>
|
||||
<key>GIDServerClientID</key>
|
||||
<string>508890452239-5hdoedc9b4rk3k5mmru176lj7f04135r.apps.googleusercontent.com</string>
|
||||
<key>CADisableMinimumFrameDurationOnPhone</key><true/>
|
||||
</dict>
|
||||
</plist>
|
||||
|
||||
@@ -7,14 +7,14 @@
|
||||
|
||||
import SwiftUI
|
||||
|
||||
@main
|
||||
struct KlottrApp: App {
|
||||
// Make AppDelegate participate in the SwiftUI lifecycle
|
||||
@UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
||||
|
||||
var body: some Scene {
|
||||
WindowGroup {
|
||||
ContentView()
|
||||
}
|
||||
}
|
||||
}
|
||||
//@main
|
||||
//struct KlottrApp: App {
|
||||
// // Make AppDelegate participate in the SwiftUI lifecycle
|
||||
// @UIApplicationDelegateAdaptor(AppDelegate.self) var appDelegate
|
||||
//
|
||||
// var body: some Scene {
|
||||
// WindowGroup {
|
||||
// ContentView()
|
||||
// }
|
||||
// }
|
||||
//}
|
||||
|
||||
Reference in New Issue
Block a user