updated ui tests and deleted unused ones (#1143)

* updated ui tests and deleted unused ones

* fix keyboard missing on iPad

* fix keyboard missing

* code improvement

* improvement for user session screen

* readded some removed files
This commit is contained in:
Mauro
2023-06-23 15:18:44 +02:00
committed by GitHub
parent 28d241d39b
commit 9c115d8e25
289 changed files with 566 additions and 585 deletions
@@ -152,11 +152,15 @@ private struct UITextViewWrapper: UIViewRepresentable {
}
func textViewDidBeginEditing(_ textView: UITextView) {
focused.wrappedValue = true
DispatchQueue.main.async {
self.focused.wrappedValue = true
}
}
func textViewDidEndEditing(_ textView: UITextView) {
focused.wrappedValue = false
DispatchQueue.main.async {
self.focused.wrappedValue = false
}
}
func textViewDidReceiveEnterKeyPress(_ textView: UITextView) {
@@ -18,6 +18,7 @@ import SwiftUI
struct RoomAttachmentPicker: View {
@ObservedObject var context: RoomScreenViewModel.Context
@Environment(\.isPresented) var isPresented
@State private var sheetContentHeight = CGFloat(0)
@@ -53,7 +54,7 @@ struct RoomAttachmentPicker: View {
PickerLabel(title: L10n.screenRoomAttachmentSourceCamera, systemImageName: "camera.fill")
}
}
.padding(.top, 20)
.padding(.top, isPresented ? 20 : 0)
.background {
// This is done in the background otherwise GeometryReader tends to expand to
// all the space given to it like color or shape.