Overview
In the development of SwiftUI, we often need to use our fingertips to operate the specified view smoothly: for example, we need to make the view automatically return to its position after dragging it, or when dragging one view, let another view follow it.
We will discuss the implementation of the above two scenes related to view movement in SwiftUI in detail later.