I have an app which displays live video from a camera/webcam. The user can draw shapes over the live image. Currently I have circle and line drawing functions. These are in separate files with their own logic and views. They are displayed in the main ContentView file. It is quite easy to display them in a Z stack here and toggle which view is on top when the user clicks a button (line or circle on the toolbar). This way the user can draw circles or lines. The problem is the user can only interact with one type of shape at a time. I am looking to display all shapes on the same view so as to allow the user to interact with whichever shape they click on. So I think my questions are how do I manage state changes to update a single view in ContentView and how to change shape model based on the type of shape clicked on by a user?