Skip to content

Instantly share code, notes, and snippets.

@congnd
Created January 4, 2021 04:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save congnd/00e3524afd3b889d94fcebbd05266938 to your computer and use it in GitHub Desktop.
Save congnd/00e3524afd3b889d94fcebbd05266938 to your computer and use it in GitHub Desktop.
let path = UIBezierPath()
path.move(to: startPoint)
let endPoint = CGPoint(x: posX + CGFloat.random(in: ), y: 0)
let controlPoint1 = CGPoint(x: , y: )
let controlPoint2 = CGPoint(x: , y: )
path.addCurve(to: endPoint, controlPoint1: controlPoint1, controlPoint2: controlPoint2)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment