Jul 1, 2023
The "ForEach(items) { item in ... }" code won't even compile if Item isn't Identifiable.
Adding the \.id parameter (or some other) would in fact be required in that case just to get the code to build...
The "ForEach(items) { item in ... }" code won't even compile if Item isn't Identifiable.
Adding the \.id parameter (or some other) would in fact be required in that case just to get the code to build...
I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.