diff --git a/Sources/Grape/Views/ForceDirectedGraph+View.swift b/Sources/Grape/Views/ForceDirectedGraph+View.swift index b19520a..69d935f 100644 --- a/Sources/Grape/Views/ForceDirectedGraph+View.swift +++ b/Sources/Grape/Views/ForceDirectedGraph+View.swift @@ -80,13 +80,6 @@ extension ForceDirectedGraph: View { let _ = model.currentFrame self.model.render(&context, size) } -#if os(iOS) || os(macOS) - .gesture( - MagnifyGesture(minimumScaleDelta: Self.minimumScaleDelta) - .onChanged(onMagnifyChange) - .onEnded(onMagnifyEnd) - ) -#endif #if !os(tvOS) .gesture( DragGesture( @@ -98,6 +91,14 @@ extension ForceDirectedGraph: View { ) .onTapGesture(count: 1, perform: onTapGesture) #endif + +#if os(iOS) || os(macOS) + .gesture( + MagnifyGesture(minimumScaleDelta: Self.minimumScaleDelta) + .onChanged(onMagnifyChange) + .onEnded(onMagnifyEnd) + ) +#endif } }