Adding the flower bouquet and the animated breath
Adding the first component, the bouquet, is relatively easy, as it is stuff we have already done; however, the second component, the moving breath, is a little tricky (but not to worry, we will go slow and everything will be explained).
So, first up, the bouquet. In ContentView
, after the petal group’s closing brace, add the following code:
//MARK: - ADD A BOUQUET OF FLOWERS AND MAKE THEM EXPAND AND CONTRACT SO THEY APPEAR TO BE BREATHING Group { Image("bouquet").resizable() .aspectRatio(contentMode: .fit) .frame(width: 300, height: 400) .rotationEffect(.degrees(37)) .offset(x: -25,...