Encapsulating SwiftUI view styles

When working with UI frameworks such as SwiftUI, it's desirable to separate the structure of our view components from the styles applied to them. In this post, John Sundell looks at several tools and techniques that we can use to do exactly that when creating custom SwiftUI views.