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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
289 changed files with 566 additions and 585 deletions

View File

@ -152,11 +152,15 @@ private struct UITextViewWrapper: UIViewRepresentable {
} }
func textViewDidBeginEditing(_ textView: UITextView) { func textViewDidBeginEditing(_ textView: UITextView) {
focused.wrappedValue = true DispatchQueue.main.async {
self.focused.wrappedValue = true
}
} }
func textViewDidEndEditing(_ textView: UITextView) { func textViewDidEndEditing(_ textView: UITextView) {
focused.wrappedValue = false DispatchQueue.main.async {
self.focused.wrappedValue = false
}
} }
func textViewDidReceiveEnterKeyPress(_ textView: UITextView) { func textViewDidReceiveEnterKeyPress(_ textView: UITextView) {

View File

@ -18,6 +18,7 @@ import SwiftUI
struct RoomAttachmentPicker: View { struct RoomAttachmentPicker: View {
@ObservedObject var context: RoomScreenViewModel.Context @ObservedObject var context: RoomScreenViewModel.Context
@Environment(\.isPresented) var isPresented
@State private var sheetContentHeight = CGFloat(0) @State private var sheetContentHeight = CGFloat(0)
@ -53,7 +54,7 @@ struct RoomAttachmentPicker: View {
PickerLabel(title: L10n.screenRoomAttachmentSourceCamera, systemImageName: "camera.fill") PickerLabel(title: L10n.screenRoomAttachmentSourceCamera, systemImageName: "camera.fill")
} }
} }
.padding(.top, 20) .padding(.top, isPresented ? 20 : 0)
.background { .background {
// This is done in the background otherwise GeometryReader tends to expand to // This is done in the background otherwise GeometryReader tends to expand to
// all the space given to it like color or shape. // all the space given to it like color or shape.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Some files were not shown because too many files have changed in this diff Show More