Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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.

Awesome Lists containing this project

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 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, [email protected]

## 📄 License

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