Scale
struct Scale: ViewModifier
SwiftUI Modifier
to scale a View
-
The observable state of the scene
Declaration
Swift
private var sceneState
-
The minimum scale factor
Declaration
Swift
private let minScale: Double = 0.8
-
The maximum scale factor
Declaration
Swift
private let maxScale: Double = 2.6
-
Observe the gesture state
Declaration
Swift
private var magnificationState = MagnificationState.inactive
-
State of the
See moreMagnificationGesture
Declaration
Swift
private enum MagnificationState
-
The
MagnifyGesture
Declaration
Swift
private var magnifyGesture: some Gesture
-
The
TapGesture
Declaration
Swift
private var doubleTapGesture: some Gesture
-
Declaration
Swift
func body(content: Content) -> some View