Swipe able, customizable card stack view, Tinder like card stack view based on UICollectionView. Cards UI
Swipable, customizable card stack view, Tinder like card stack view based on UICollectionView. Cards UI
Add in your Podfile
:
pod 'TisprCardStack'
please pay attention:
And in your *.swift
:
import TisprCardStack
Add TisprCardStackViewCell.swift
,TisprCardStackViewController.swift
, TisprCardStackViewLayout.swift
into your Xcode project.
Create controller ‘TisprCardStackViewController’ with ‘TisprCardStackViewLayout’ collectionViewLayout
Configuration TisprCardStackViewController,
setAnimationSpeed(0.85)
setCardSize(size)
func numberOfCards() -> Int {}
card(collectionView: UICollectionView, cardForItemAtIndexPath indexPath: NSIndexPath) -> TisprCardStackViewCell {}
func newCardWasAdded()
layout.topStackMaximumSize = 4
layout.bottomStackMaximumSize = 30
layout.bottomStackCardHeight = 45
moveCardUp()
moveCardDown()
deleteCard
func cardDidChangeState(cardIndex: Int)
For more detail, see the sample project.
Apache License
Version 2.0. See LICENSE.txt