Generic parameter 'V' could not be inferred Xcode error Please help

Could you tell on which line the error occurs ?

Did you get this resolved? I have the same error.

In every case I've seen, this is a spurious error message caused by some syntax error buried within the view code. It can happen, for example, when you rename a function or member but still have a reference to the old name in SwiftUI code.

In the code you posted, I'd suspect that some reference to something in LoginModel is wrong.

You should file feedback with Apple on this, because it has been going on for years and wasting developers' time.

I agree with @Stokestack that it is a problem with Xcode. The usual way I debug it is by progressively commenting out sections of my code and observing at which point the compiler error disappears (or changes). This will help you narrow down and find the real syntax issue you need to fix.

Generic parameter 'V' could not be inferred Xcode error Please help
 
 
Q