Logic explain

  1. How big is your view is controlled by size and scale
  2. When pinching with your finger, we modify the scale, but not the original size
  3. After the pinching is finished, we change the size according to the scale ( for example, if you scale is 2, then multiple the weight and height of your size by 2 ). Finally, put the scale back to 1

Untitled