Michael Long
Jul 17, 2024

--

Lost me on the very first example. The recommended style is overly redundant, especially in a User struct where the value will typically be referenced using dot notation anyway.

Text(user.name) // preferred

Text(user.userName) // redundant

--

--

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.

Responses (7)