From f64adb11e9102e96a89e0c1a32e1f79cb91a98ef Mon Sep 17 00:00:00 2001 From: Wojciech Nagrodzki <278594+wnagrodzki@users.noreply.github.com> Date: Tue, 6 Sep 2016 18:44:14 +0200 Subject: [PATCH] Adds a draggable view to storyboard and a reference to it in ViewController --- .../Base.lproj/Main.storyboard | 18 +++++++++++++++--- DragGestureRecognizer/ViewController.swift | 2 ++ 2 files changed, 17 insertions(+), 3 deletions(-) diff --git a/DragGestureRecognizer/Base.lproj/Main.storyboard b/DragGestureRecognizer/Base.lproj/Main.storyboard index 273375f..f12ae7c 100644 --- a/DragGestureRecognizer/Base.lproj/Main.storyboard +++ b/DragGestureRecognizer/Base.lproj/Main.storyboard @@ -1,14 +1,15 @@ - + - + + - + @@ -16,11 +17,22 @@ + + + + + + + + + + + diff --git a/DragGestureRecognizer/ViewController.swift b/DragGestureRecognizer/ViewController.swift index 96a0b3d..289f8a1 100644 --- a/DragGestureRecognizer/ViewController.swift +++ b/DragGestureRecognizer/ViewController.swift @@ -25,6 +25,8 @@ import UIKit class ViewController: UIViewController { + + @IBOutlet weak var draggableView: UIView! override func viewDidLoad() { super.viewDidLoad()