Michael Long
Jun 2, 2024

--

Not the best way to accomplish this from my perspective. Button styles are best embraced by creating button styles, and not by wrapping Button and Text into distinct components.

Those entities, in particular, offer a lot of customization in terms of internalization and formatting that's lost when hidden behind custom initializers.

--

--

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)