Michael Long
Aug 5, 2021

--

Just noting that in "static func build(_ with: BuilderParameter) -> Self" using inout on an NSObject-based parameter is unnecessary.

The object is passed by reference and any modifications would already be to the referenced object.

Unless the intent is to allow UILabel.build { $0 = UILabel() }...

--

--

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 (1)