In every case I've seen, this is a spurious error caused by an unrelated syntax problem somewhere in the view code. It often happens, for example, when you change the name of a member variable or function but don't update a reference to it in SwiftUI code.