A gesture that recognizes a magnification motion and tracks the amount of magnification.
Mac Catalyst 13.0+
A magnification gesture tracks how a magnification event sequence changes. To recognize a magnification gesture on a view, create and configure the gesture, and then add it to the view using the gesture(_:including:) modifier.
Add a magnification gesture to a Circle that changes its size while the user performs the gesture:
The circle’s size resets to its original size when the gesture finishes.