CardStackView

1.1.0

Inifinite swipeable stacked UIViews.
gomfucius/CardStackView

What's New

1.1.0

2020-11-07T03:09:45Z
  • #4 Added currentIndex to the CardView class

🎴 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.

Description

  • Swift Tools 5.0.0
View More Packages from this Author

Dependencies

  • None
Last updated: Wed Mar 13 2024 02:17:16 GMT-0900 (Hawaii-Aleutian Daylight Time)