Home  »  UI Demo - iOS9  »  How To Use UIPanGestureRecognizer In Swift 2, iOS 9 Application

How To Use UIPanGestureRecognizer In Swift 2, iOS 9 Application

Posted on 25 Oct 2015

UI Demo -  UIPanGestureRecognizer (Swift 2, iOS 9)

Sample project demonstrate how to use UIPanGestureRecognizer within iOS 9 application (Swift 2, Xcode 7). i.e. Create pan gesture recognizer runtime, set target, and perform action when user drag object with finger. This example generates custom view on the screen (having round corner and colour). When user touch and drag any custom view, it will move/translate that object accordingly.

Technology used
– UIPanGestureRecognizer.
– Create custom view (round corner and random colour).
– Add pan gesture recognizer to custom view.
– Handle pan gesture, translate/move object accordingly.
– Build with Xcode storyboard.
– Adaptive layout for major screen size support.
– Created with Swift 2, Xcode 7, iOS 9.

Platform
– Swift 2
– Xcode 7
– iOS 9

Supported Device
iPhone 4s, 5, 5s, 5c, 6, 6 Plus, 6s, 6s Plus, all iPad having iOS 9.

You can download source form GitHub profile.

Go to Top