Define Properties for a View
Build an App Like Lego, with SwiftUI — Tutorial 10
Published in
8 min readJun 2, 2021
1. Introduction
A component is most flexible when we declare “properties” to customize differently for each instance.
For a view component, the properties are best declared as subviews, such as an image or text, or as a view attribute such as color. We usually set a…