https://github.com/gomfucius/CardStackView
Inifinite swipeable stacked UIViews.
https://github.com/gomfucius/CardStackView
cardview infinite ios swift swipeable
Last synced: 5 months ago
JSON representation
Inifinite swipeable stacked UIViews.
- Host: GitHub
- URL: https://github.com/gomfucius/CardStackView
- Owner: gomfucius
- License: mit
- Created: 2017-07-23T17:13:31.000Z (over 7 years ago)
- Default Branch: main
- Last Pushed: 2020-11-07T03:09:45.000Z (over 4 years ago)
- Last Synced: 2024-04-26T23:22:34.803Z (12 months ago)
- Topics: cardview, infinite, ios, swift, swipeable
- Language: Swift
- Homepage:
- Size: 1.95 MB
- Stars: 43
- Watchers: 4
- Forks: 6
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-cocoa - CardStackView
README
# 🎴 CardStackView
[](https://swift.org)
[](https://github.com/gomfucius/CardStackView/actions)
[](https://github.com/Carthage/Carthage)
[](http://cocoapods.org/pods/CardStackView)
[](http://cocoapods.org/pods/CardStackView)
[](http://cocoapods.org/pods/CardStackView)
[](https://coveralls.io/github/gomfucius/CardStackView?branch=master)
## 😃 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](https://developer.apple.com/documentation/swift_packages), [Carthage](https://github.com/Carthage/Carthage) and [CocoaPods](https://cocoapods.org).
### Carthage
github "gomfucius/CardStackView" == 0.2.1
### Cocoapods
To install, simply add the following line to your Podfile:
```ruby
pod "CardStackView"
```## 🤔 Implementation
```swift
import CardStackViewclass 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.