mirror of
https://github.com/fankes/pagecurl-multiplatform.git
synced 2025-09-04 01:35:36 +08:00
20 lines
535 B
Swift
20 lines
535 B
Swift
import UIKit
|
|
import SwiftUI
|
|
import shared
|
|
|
|
struct ComposeView: UIViewControllerRepresentable {
|
|
func makeUIViewController(context: Context) -> UIViewController {
|
|
let viewController = Main_iosKt.createUIViewController()
|
|
return viewController
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}
|
|
}
|
|
|
|
struct ContentView: View {
|
|
var body: some View {
|
|
ComposeView()
|
|
.ignoresSafeArea(.all, edges: .bottom) // Compose has own keyboard handler
|
|
}
|
|
}
|