Skip to content

alexsanchezdev/scrollViewSwipeGestureRecognizer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

UIScrollView movement using Swipe Gesture Recognizer - Resize Animations - Swift 3

Grab the code from the ViewController.swift file.

For the interface:

  1. Search for a component called Swipe Gesture Recognizer
  2. Grab it and drop it on top of the View (use the hierarchy to make sure you drop it on it, if you drop it on another element this code will not work)
  3. Select one of the Swipe Gesture Recognizer in the hierarchy and go to its attribute page. Change Swipe to Left.
  4. Make sure the other recognizer has the Swipe attribute to Right
  5. Select UIScrollView and uncheck Scrolling enabled
  6. Connect detectSwipe() to both recognizers.

HAVE FUN!

About

UIScrollView scrolling using Swipe Gestures Recognizer

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages