6 iOS Libraries to Create Tinder-Like Swipeable Cards
View, swipe, and sort
Tinder introduced a wonderful pattern for viewing and sorting data. It doesn’t have to be eligible people to date; it can be anything. Let’s take a look at six useful iOS libraries to bring swipeable, sortable cards into your app.
1. Koloda
Credits https://yalantis.com
Koloda is a class designed to make it easier to implement Tinder-like cards. It also provides us with delegates and data source methods similar to UITableView
and UICollectionView
which makes it even easier for us to handle different cases such as selection
and swiping
of cards.
This library is compatible with iOS 11+ versions and Xcode 11+
This is the best library out there to implement Tinder-like cards, according to my personal experience. I have used this in production and never had any issues with it. Developers keep this library up-to-date whenever a new version of iOS is released.
2. MCDSwipeToChoose
Credits https://github.com/modocache/MDCSwipeToChoose
This is an old library out in the open-source market which is built using ObjectiveC. All the Swift developers who want to use this can create a Bridging header
and use this in your Swift Project.
This library is compatible with iOS 8+ versions.
3. Card Slider
Credits https://github.com/saoudrizwan/CardSlider
This library provides an enhancement to Tinder cards. In addition to Swiping Left and Right
, it also comes with functionality to Pivot in any direction
.
This library is not available through CocoaPods
or Swift Package Manager
, so you will have to manually use the files that have the implementation code. You can customise the number of pivot actions that it provides. By default. it comes with six pivot actions (three on the left and three on the right). In case you decide to add more actions, you’ll need to modify the UI in order to accommodate them properly.
4. RKSwipeCards
Credits https://github.com/cwRichardKim/RKSwipeCards
This is also an old library written in Objective-C, but it provides you with a lot of modifications with minimal effort. The creator of this library has even written an article about how to use this in the best possible way.
Easy modifications provided are:
- Action margin (the distance from the middle required for an action to take place).
- Squeeze ratio (limit, strength).
- Rotation (strength, limit, angle).
5. ZLSwipeableViewSwift
Credits https://github.com/zhxnlai/ZLSwipeableViewSwift
Credits https://github.com/zhxnlai/ZLSwipeableViewSwift
This is the most recent update Library and comes with many different animations. You can even use Storyboards
to build a UI using this library.
This library does not provide Delegate
or Data Source
methods instead it comes with Callbacks
.
This library supports iOS 7+ versions.
6. MXCardLayout
Credits https://github.com/zqpmaster/MXCardLayout
This library does not provide Tinder-like cards; instead it helps you create the App Switcher
that comes in every iOS device
these days.
This is written in ObjectiveC and is compatible with iOS 8+ versions.