View Composition In SwiftUI
Or how to avoid MVB (Massive-View-Bodies) in one easy lesson.
With dynamic previews, SwiftUI tends to encourage a highly iterative development style. Build a basic view layout. Add some subviews. Add a couple of modifiers to tweak those subviews into shape.
Examine the results. Add more views. Add some more modifiers. Add a few animations. Add some…