Michael Long
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...

--

--

Michael Long
Michael Long

Written by Michael Long

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.

No responses yet