A gesture that recognizes a magnification motion and tracks the amount of magnification.
- iOS 13.0+
- macOS 10.15+
- Mac Catalyst 13.0+
- Xcode 11.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(_: modifier. The following code snippet adds a magnification gesture to a
Circle and changes the size of the circle while the user performs the gesture, and resets it to its original size when the gesture finishes.