Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/gomfucius/CardStackView
Inifinite swipeable stacked UIViews.
https://github.com/gomfucius/CardStackView
cardview infinite ios swift swipeable
Last synced: about 1 month 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 (about 4 years ago)
- Last Synced: 2024-04-26T23:22:34.803Z (8 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
[![Swift](https://img.shields.io/badge/swift-5.0-brightgreen.svg?style=flat)](https://swift.org)
[![UnitTest Actions Status](https://github.com/gomfucius/CardStackView/workflows/test/badge.svg)](https://github.com/gomfucius/CardStackView/actions)
[![Carthage](https://img.shields.io/badge/Carthage-✔-f2a77e.svg?style=flat)](https://github.com/Carthage/Carthage)
[![Version](https://img.shields.io/cocoapods/v/CardStackView.svg?style=flat)](http://cocoapods.org/pods/CardStackView)
[![License](https://img.shields.io/cocoapods/l/CardStackView.svg?style=flat)](http://cocoapods.org/pods/CardStackView)
[![Platform](https://img.shields.io/cocoapods/p/CardStackView.svg?style=flat)](http://cocoapods.org/pods/CardStackView)
[![Coverage Status](https://coveralls.io/repos/github/gomfucius/CardStackView/badge.svg?branch=master)](https://coveralls.io/github/gomfucius/CardStackView?branch=master)![Alt text](/Example/example.gif?raw=true "CardStackView example gif")
## 😃 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, [email protected]
## 📄 License
CardStackView is available under the MIT license. See the LICENSE file for more info.