TextField(text: $viewModel.assignee, prompt: Text(" Assignee"), label: {
})
.autocorrectionDisabled(true)
.textInputAutocapitalization(.never)
.focused($isTextEditorFocused)
.toolbar(content: {
ToolbarItemGroup(placement: .keyboard) {
Spacer()
Button("Done") {
isTextEditorFocused = false
}
}
})
.font(.custom("ProximaNova-Regular", size: 16))
.frame(height: 30)
.frame(maxWidth: .infinity)
.overlay(content: {
RoundedRectangle(cornerRadius: 4)
.stroke(Color.gray , lineWidth: 0.5)
})
.padding(.bottom, 10)
.padding(.horizontal , 10)
.disabled(!viewModel.isEditEnabled)
For the above code I am unable to see the done button on the keyboard. Any help would be appreciated.