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 moreMagnificationGestureDeclaration
Swift
private enum MagnificationState -
The
MagnifyGestureDeclaration
Swift
private var magnifyGesture: some Gesture -
The
TapGestureDeclaration
Swift
private var doubleTapGesture: some Gesture -
Declaration
Swift
func body(content: Content) -> some View
View on GitHub