Fixes #1911 - Automatically focus the composer when a hardware keyboards is connected (#2343)

This commit is contained in:
Stefan Ceriu
2024-01-17 10:06:31 +02:00
committed by GitHub
parent 4bced249c2
commit 29833b9614
4 changed files with 25 additions and 3 deletions
@@ -31,7 +31,6 @@ struct MessageComposer: View {
let replyCancellationAction: () -> Void
let editCancellationAction: () -> Void
let onAppearAction: () -> Void
@FocusState private var focused: Bool
@State private var composerTranslation: CGFloat = 0
private let composerShape = RoundedRectangle(cornerRadius: 21, style: .circular)
@@ -77,7 +76,6 @@ struct MessageComposer: View {
alignment: .top)
.tint(.compound.iconAccentTertiary)
.padding(.vertical, 10)
.focused($focused)
.onAppear {
onAppearAction()
}