Advertisement
Guest User

Untitled

a guest
Aug 21st, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. override func touchesMoved(_ touches: Set<UITouch>, with event: UIEvent?) {
  2.  
  3. swiped = true
  4.  
  5. if let touch = touches.first{
  6. let currentPoint = touch.location(in: self.view)
  7. drawLines(fromPoint: lastPoint, toPoint: currentPoint)
  8.  
  9. lastPoint = currentPoint
  10.  
  11.  
  12. segmentTop = touch.location(in: self.view)
  13. segmentBottom = touch.location(in: self.view)
  14. segmentLeft = touch.location(in: self.view)
  15. segmentRight = touch.location(in: self.view)
  16.  
  17. }
  18. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement