I just had exactly the same error after just modifying two lines of code. By undoing the changes I found out the problem was the use of the TextField modifier .textInputAutocapitalization().
In fact it is working fine with .autocapitalization() instead, though marked as deprecated.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: