mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 21:33:26 +00:00
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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user