SHARE
TWEET

Untitled

a guest Oct 19th, 2019 70 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. if isBlue == true {
  2.             blueView.backgroundColor = greenView.backgroundColor
  3.         } else {
  4.             blueView.backgroundColor = UIColor(red: 0/255.0, green: 128/255.0, blue: 255/255.0, alpha: 1)
  5.         }
  6.         isBlue = !isBlue
  7.     }
  8.     @IBAction func didBeginPanGesture(_ sender: UIPanGestureRecognizer) {
  9.         var point = sender.location(in: view)
  10.         blueView.center = CGPoint(x: point.x, y: point.y)
  11.     }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top