Creating a bounce effect on Swift with UIBezierPath