This commit is contained in:
David Langley
2022-10-12 15:08:50 +01:00
parent 821a54e726
commit 4cbef854c9
12 changed files with 64 additions and 67 deletions
@@ -19,11 +19,11 @@ import SwiftUI
import WysiwygComposer
struct Composer: View {
// MARK: - Properties
// MARK: Private
@State var focused = false
private let borderHeight: CGFloat = 44
private let minTextViewHeight: CGFloat = 20
private var verticalPadding: CGFloat {
@@ -85,6 +85,11 @@ struct Composer: View {
.padding(.horizontal, 12)
.padding(.top, 8)
.padding(.bottom, 4)
.onTapGesture {
if !focused {
focused = true
}
}
HStack {
Button {
showSendMediaActions()
@@ -131,6 +136,7 @@ struct Composer: View {
}
// MARK: Previews
struct Composer_Previews: PreviewProvider {
static let stateRenderer = MockComposerScreenState.stateRenderer
static var previews: some View {