Poi
You can use tinder UI like tableview method
Installation
Manual Installation
- Use this command
git clone git@github.com:HideakiTouhara/Poi.git
- Import Poi.xcodeproj to your project
- Add Poi.frameworkiOS to Embedded Binaries
Cocoa Pods
Please write the below code in Podfile
pod ‘Poi’
Carthage
Write this code in your Cartfile.
github "HideakiTouhara/Poi"
and implement this command
carthage update
Add Poi.framework in /Carthage/Build/iOS/ to Embedded Binaries.
Usage
Create PoiView in storyboard or swift file
or
Conform to PoiViewDataSource and PoiViewDelegate
Designate delegate target.
Please put this code after setting card contents.
PoiViewDataSource method
Set swipeable card number(required method)
Set swipeable card(required method)
Set overlay image if right or left swiped
PoiViewDelegate method
When did swipe, this method is called
When last card was swiped, this method is called
Public method
Swipe current card
Undo animation and go back previous card
Example
Check the Example file!
Contribution
Please create issues or submit pull requests for anything.
License
Poi is released under the MIT license.
© 2018 GitHub, Inc.