Skip to content

Instantly share code, notes, and snippets.

@alladinian
Created March 23, 2020 14:26
Show Gist options
  • Save alladinian/119306bf1cb55379f8cdd83237912ce7 to your computer and use it in GitHub Desktop.
Save alladinian/119306bf1cb55379f8cdd83237912ce7 to your computer and use it in GitHub Desktop.
struct ControlPointHandle: View {
private let size: CGFloat = 20
var body: some View {
Circle()
.frame(width: size, height: size)
.overlay(
Circle()
.stroke(Color.white, lineWidth: 2)
)
.offset(x: -size/2, y: -size/2)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment