We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c3064b0 commit 859ca64Copy full SHA for 859ca64
1 file changed
Core/Sources/SuggestionWidget/SuggestionPanelContent/ChatPanel.swift
@@ -124,6 +124,7 @@ struct ChatPanelInputArea: View {
124
@ObservedObject var chat: ChatRoom
125
var inputAreaNamespace: Namespace.ID
126
@Binding var typedMessage: String
127
+ @FocusState var isInputAreaFocused: Bool
128
129
var body: some View {
130
HStack {
@@ -148,6 +149,7 @@ struct ChatPanelInputArea: View {
148
149
TextField("Type a message", text: $typedMessage)
150
}
151
152
+ .focused($isInputAreaFocused)
153
.lineLimit(3)
154
.multilineTextAlignment(.leading)
155
.textFieldStyle(.plain)
@@ -179,6 +181,9 @@ struct ChatPanelInputArea: View {
179
181
.buttonStyle(.plain)
180
182
.xcodeStyleFrame()
183
184
+ .onAppear {
185
+ isInputAreaFocused = true
186
+ }
187
188
189
0 commit comments