You can detect a dragging motion in SwiftUI with DragGesture and passing it into the .gesture modifier.
Category Archives: Uncategorized
How to animate Views in SwiftUI?
SwiftUI comes with an .animation modifier that can be applied to any View that conforms to the Animatable property. This includes all Shape like Circle. You can use it by applying the .animation modifier to any of these views with the default being an ease in/ease out animation.