Just in case, solution exist, more dirty hack, but still
@claude sonnet, are you sure that no way?)
TextField(viewModel.placeholder, text: $viewModel.text)
.onReceive(NotificationCenter.default.publisher(
for: UITextField.textDidChangeNotification)
) { notification in
guard let textField = notification.object as? UITextField,
!textField.enablesReturnKeyAutomatically else {
return
}
textField.enablesReturnKeyAutomatically = true
textField.reloadInputViews()
}