mirror of
https://github.com/BetterAndroid/FlexiUI.git
synced 2025-09-09 12:04:11 +08:00
feat: update demo
This commit is contained in:
@@ -8,7 +8,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|||||||
|
|
||||||
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
|
||||||
window = UIWindow(frame: UIScreen.main.bounds)
|
window = UIWindow(frame: UIScreen.main.bounds)
|
||||||
window?.rootViewController = UIViewControllerKt.createUIViewController()
|
window?.rootViewController = MainViewControllerKt.createMainViewController()
|
||||||
window?.makeKeyAndVisible()
|
window?.makeKeyAndVisible()
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
|
@@ -24,4 +24,4 @@
|
|||||||
import com.highcapable.betterandroid.compose.multiplatform.platform.AppComponentUIViewController
|
import com.highcapable.betterandroid.compose.multiplatform.platform.AppComponentUIViewController
|
||||||
import com.highcapable.flexiui.demo.App
|
import com.highcapable.flexiui.demo.App
|
||||||
|
|
||||||
fun createUIViewController() = AppComponentUIViewController { App() }
|
fun createMainViewController() = AppComponentUIViewController { App() }
|
Reference in New Issue
Block a user