โฌ๏ธ ้่ฆ๏ผ .draggable(), .frame()
// 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
}
}