๐Ÿ–ผ๏ธHandlePoint

๐Ÿ”ธ top-most is a HandlePoint

โฌ†๏ธ ้œ€่ฆ๏ผš .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
    }
}

Last updated