Adding the circles
Let’s briefly review the goal of this project. We want to make six circles grow and shrink, and at the same time rotate them, and move them in and out. The six circles will be overlapping each other, which adds a nice look as they will be partially translucent.
To make this work, we need some more ZStacks, and then to place the circles, in pairs, into them. How the circles are aligned in relation to each other can be likened to the numbers on a clock. Going with this clock analogy, we need a ZStack
to hold the three pairs:
- The first pair of circles will be placed in the 12 and 6 o’clock positions
- The second pair of circles will be placed in the 2 and 7 o’clock positions
- The third pair of circles will be placed in the 10 and 4 o’clock positions
Let’s see how to add these three pairs of circles.
Adding the first pair of circles
The first pair of circles we will add will be placed in the 12 and 6 o...