Michael Long
Aug 1, 2021

--

I kind of implied that use case with [sic] the example on Builder, though not as a protocol.

When not using Builder, however, I tend to prefer the global function as I can use it with anything and don't have to explicitly define conformance on every single UIKit type.

Thanks for the example and reading!

--

--

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)