"Extra Chapter 8" SwiftUI opens up your imagination to implement an "alternative" view following method

Insert image description here

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.

Insert image description here

We will discuss the implementation of the above two scenes related to view movement in SwiftUI in detail later.

Guess you like

Origin blog.csdn.net/mydo/article/details/135309632