Skip to content

Wooder/CardStackView

 
 

Repository files navigation

🎴 CardStackView

Swift CI Status Carthage Version License Platform Coverage Status

Alt text

😃 Example Project

To run the example project, clone the repo, and run pod install from the Example directory first.

🖥 Installation

CardStackView is available through Swift Package Manager, Carthage and CocoaPods.

Carthage

github "gomfucius/CardStackView" == 0.2.1

Cocoapods

To install, simply add the following line to your Podfile:

pod "CardStackView"

🤔 Implementation

import CardStackView

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()

        var cardViews = [MyCustomView]()

        for index in 0...6 {
            var view = MyCustomView()
            cardViews.append(view)
        }

        let cardStackView = CardStackView(cards: cardViews)
        self.view.addSubview(cardStackView)

        // autolayout your cardStackView
    }
}

🤓 Author

gomfucius, gomfucius@gmail.com

📄 License

CardStackView is available under the MIT license. See the LICENSE file for more info.

About

Inifinite swipeable stacked UIViews.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Swift 90.1%
  • Ruby 7.8%
  • Objective-C 2.1%