SongView
struct SongView: View
SwiftUI View
for the song
-
The app state
Declaration
Swift
private var appState
-
The scene state
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
-
Calculate the scale within the minimum and maximum scale value
Declaration
Swift
private var scale: Double
-
The
MagnifyGesture
Declaration
Swift
private var magnifyGesture: some Gesture
-
The
TapGesture
Declaration
Swift
private var doubleTapGesture: some Gesture
-
The body of the
View
Declaration
Swift
var body: some View