I've spent 3 or 4 days working on a issue that came down to this message 'V' could not be inferred.
The problem turned out to be the compiler couldn't take the time to tell me the Transaction model did NOT have a property 'quantity' (it was changed to 'shares').
I found this out when I started factoring out pieces of the View into components... in this case when I got to creating a TransactionRow View the simplified code could be compiled and the 'quantity' property got flagged as non existent.
Wow - such a bad compiler message. Had me thinking my Query properties were bad.
Lesson I hope to learn - when things go to crap... simplify!
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: