This short lesson introduces “state management” by showing how to change the appearance of buttons based on user actions. Tap a button for example, and the color and/or size of the button can be made to vary based on the fact that it was tapped.
When asked to extract a subview from the button, make sure you wrap the button in a VStack and then extract it.
Read Chapter 7: Understanding State and Binding