79740911

Date: 2025-08-20 09:53:45
Score: 1.5
Natty:
Report link

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()
     }
Reasons:
  • Long answer (-0.5):
  • Has code block (-0.5):
  • Contains question mark (0.5):
  • User mentioned (1): @claude
  • Low reputation (1):
Posted by: Алексей Александрович