# HandlePoint

{% embed url="<https://youtu.be/fcNPtYRCsAA>" %}
🔸 top-most is a `HandlePoint`
{% endembed %}

{% tabs %}
{% tab title="🖼 HandlePoint" %}
⬆️ 需要： [](https://lochiwei.gitbook.io/ios/swiftui/gestures/drag/.draggable "mention"), [ext](https://lochiwei.gitbook.io/ios/swiftui/view/layout/frame/ext "mention")

```swift
// 2022.03.09
import SwiftUI

// 🖼 HandlePoint
struct HandlePoint: View {
    private let size: CGFloat = 20
    var body: some View {
        Circle()
            .fill(.secondary)
            .frame(size)        // 🌀 View+ .frame()
            .overlay(
                Circle().stroke(.white, lineWidth: 2)
            )
            .draggable()        // 👔 Draggable
    }
}
```

{% endtab %}

{% tab title="👥 相關" %}

* source code for the video above, see: 👉 [](https://lochiwei.gitbook.io/ios/swiftui/gestures/drag/.draggable "mention").
  {% endtab %}
  {% endtabs %}
