Get Updates By E-mail 

Article Written By:
Johann Dowa

Open Source Library And Component For Easily Adding Swipe To Choose Functionality To A View

  •  
  •  
  •  
  •  
  •  

I’ve mentioned a number of components that make good use of the swipe gesture – usually for implementing the swipe to reveal pattern with tableview cells like with SWTableViewCell.

Here’s an open source library called MDCSwipeToChoose that provides a category allowing you to easily add swipe gesture callbacks to a UIView and also provides a component using this behavior to create a swipe to like or dislike interface like the Tinder app.

With the library you can easily decide what behavior to execute based on the direction of swipes, and you can easily customize the text color and images.

Here’s an image showing MDCSwipeToChoose in action:
MDCSwipeToChoose

You can find MDCSwipeToChoose on Github here.

A nice easy library for creating a swiped based interface.


  •  
  •  
  •  
  •  
  •  

Submit A Resource

Have you created a useful tutorial, library or tool for iOS development that you would like to get in front of our 300,000+ monthly page views from iOS developers?

You can submit the url here.

The resources we feel will appeal to our readers the most will be posted on the front page.

Comments