Tinder card like carousel to swipe left and right
pod 'Kingfisher'
pod 'NVActivityIndicatorView'
pod 'RealmSwift'
pod 'Alamofire'
pod 'RxCocoa'
pod 'RxSwift'
pod 'Cartography'
pod 'SwiftLint'
- Download the project.
- Add
ZLSwipeableViewSwift
library for card swiping - Add necessary files in your project.
- Congratulations!
To run the example project, clone the repo, and run pod install from the Example directory first.
// Add swipeable view
swipeableView = ZLSwipeableView()
swipeableView.allowedDirection = [.None, .Left, .Right]
view.addSubview(swipeableView)
// Add card view
let peopleView = PeopleView(frame: swipeableView.bounds)
peopleView.backgroundColor = UIColor.white
let contentView = Bundle.main.loadNibNamed("PeopleContentView", owner: self, options: nil)?.first! as! PeopleContentView
contentView.translatesAutoresizingMaskIntoConstraints = false
contentView.backgroundColor = peopleView.backgroundColor
peopleView.addSubview(contentView)
We would love you for the contribution to TinderCardView, check the LICENSE
file for more info.
TinderCardView is available under the MIT license. See the LICENSE file for more info.