c7d2402619
Make it so that Compose stretches to the bottom of the screen (no white border)
21 lines
483 B
Swift
21 lines
483 B
Swift
import UIKit
|
|
import SwiftUI
|
|
import shared
|
|
|
|
struct ComposeView: UIViewControllerRepresentable {
|
|
func makeUIViewController(context: Context) -> UIViewController {
|
|
Main_iosKt.MainViewController()
|
|
}
|
|
|
|
func updateUIViewController(_ uiViewController: UIViewController, context: Context) {}
|
|
}
|
|
|
|
struct ContentView: View {
|
|
var body: some View {
|
|
ComposeView()
|
|
.ignoresSafeArea(.all, edges: .bottom) // Compose has own keyboard handler
|
|
}
|
|
}
|
|
|
|
|
|
|