gomfucius / CardStackView

Inifinite swipeable stacked UIViews.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🎴 CardStackView

Swift UnitTest Actions Status Carthage Version License Platform Coverage Status

Alt text

πŸ˜ƒ Example Project

To run the example project, clone the repo, open Example/CardStackView.xcodeproj, then build and run the CardStackView_Example target.

πŸ–₯ 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.

License:MIT License


Languages

Language:Swift 97.8%Language:Objective-C 2.2%