Home

Awesome

RKSwipeCards

alt tag

This is for maximum customizability and / or learning purposes, not a pod or drop-in solution

The basics of a swipeable card interface inspired by Tinder and influenced by http://guti.in

This is meant to be taken and built off of, not as a simple drag and drop solution. New developers are often forced to use dependencies they don't understand and can't customize. This is the opposite. I've fully explained exactly how this works in detailed comments so that you can take it apart and customize it at will. For a pod/drag and drop solution, see https://github.com/modocache/MDCSwipeToChoose

Updates, Questions, and Requests

twitter <--- I am a very light twitterer, so I wont spam you

or Support

Relevant Article for deciding how to implement swipe cards into your app

https://medium.com/@cwRichardKim/adding-tinder-esque-cards-to-your-iphone-app-4047967303d1

On top of your current View Controllers

alt tag

Features:

Customizeability Examples:

action margin (the distance from the middle required for an action to take place)

alt tag alt tag

squeeze ratio (limit, strength)

alt tag alt tag

rotation (strength, limit, angle)

alt tag alt tag

+ More!

in DraggableView.h

Each component is also explained thoroughly, so it is highly customizeable in many ways

How to use

files

Setup as View Controller (see ViewController.m)

DraggableViewBackground *draggableBackground = [[DraggableViewBackground alloc]initWithFrame:self.view.frame];
[self.view addSubview:draggableBackground];

Setup as UIView ontop of View Controller

CGRect frame = self.view.frame;
frame.origin.y = -self.view.frame.size.height; //optional: if you want the view to drop down
DraggableViewBackground *draggableBackground = [[DraggableViewBackground alloc]initWithFrame:frame];
draggableBackground.alpha = 0; //optional: if you want the view to fade in

[self.view addSubview:draggableBackground];

  //optional: animate down and in
[UIView animateWithDuration:0.5 animations:^{
    draggableBackground.center = self.view.center;
    draggableBackground.alpha = 1;
}];

Presenting Your Data

Loading Data

Presenting Data in View

Looking for certain features?

Areas for Future Improvement / Involvement

Change Log