Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
- swiped = true
- if let touch = touches.first{
- let currentPoint = touch.location(in: self.view)
- drawLines(fromPoint: lastPoint, toPoint: currentPoint)
- lastPoint = currentPoint
- segmentTop = touch.location(in: self.view)
- segmentBottom = touch.location(in: self.view)
- segmentLeft = touch.location(in: self.view)
- segmentRight = touch.location(in: self.view)
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement