minimumScaleDelta
TypeScriptget minimumScaleDelta(): numberSwift declarationvar minimumScaleDelta: CGFloatThe minimum required delta before the gesture starts.
struct · iOS 13.0+ · Deprecated in iOS 100000.0 · SDK 27.1
nonisolated struct MagnificationGestureA gesture that recognizes a magnification motion and tracks the amount of magnification. 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 ``View/gesture(_:including:)`` modifier. Add a magnification gesture to a ``Circle`` that changes its size while the user performs the gesture: struct MagnificationGestureView: View { @GestureState private var magnifyBy = 1.0 var magnification: some Gesture { MagnificationGesture() .updating($magnifyBy) { currentState, gestureState, transaction in gestureState = currentState } } var body: some View { Circle() .frame(width: 100, height: 100) .scaleEffect(magnifyBy) .gesture(magnification) } } The circle's size resets to its original size when the gesture finishes.
get minimumScaleDelta(): numberSwift declarationvar minimumScaleDelta: CGFloatThe minimum required delta before the gesture starts.
set minimumScaleDelta(value: number)Swift declarationvar minimumScaleDelta: CGFloatThe minimum required delta before the gesture starts.
static init(minimumScaleDelta?: number): MagnificationGestureSwift declarationnonisolated init(minimumScaleDelta: CGFloat = 0.01)Creates a magnification gesture with a given minimum delta for the gesture to start. - Parameter minimumScaleDelta: The minimum scale delta required before the gesture starts.
No declarations were skipped in this snapshot.