Michael Long
Jan 14, 2022

--

As mentioned, refactoring is your friend here. SwiftUI encourages view composition, with little to no performance hit for doing so.

I'd also mention that ctrl-i can be a friend here. Just select a block of code and do ctrl-i to reformat it and get all of the braces back where they belong.

--

--

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