Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/jwd-ali/drag3drotatecard

Drag card with finger to see its both sides
https://github.com/jwd-ali/drag3drotatecard

3danimation 3drotate cabasicanimation cardview carthage cocoapods drag image imageview ios rotate swift swift5-3 uiimageview xcode

Last synced: 3 days ago
JSON representation

Drag card with finger to see its both sides

Awesome Lists containing this project

README

        



Drag3DRotateCard

[![CI Status](https://travis-ci.org/jwd-ali/RingPieChart.svg)](https://travis-ci.org/jwd-ali/RingPieChart)
[![CocoaPods Version](https://img.shields.io/cocoapods/v/Drag3DRotateCard.svg?style=flat)](https://cocoapods.org/pods/Drag3DRotateCard)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-0473B3.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License](https://img.shields.io/cocoapods/l/RingPieChart.svg?style=flat)](https://cocoapods.org/pods/Drag3DRotateCard)
[![Platform](https://img.shields.io/cocoapods/p/RingPieChart.svg?style=flat)](https://cocoapods.org/pods/Drag3DRotateCard)
[![Swift 5.1](https://img.shields.io/badge/swift-5.1-orange)](https://swift.org)

Drag to rotate card in 3D with finger to see its both sides

___


## Requirements

- iOS 10.0+ / Mac OS X 10.9+ / watchOS 2.0+ / tvOS 9.0+
- Xcode 8.0+

## Installation

### [CocoaPods](http://cocoapods.org)

To integrate **Drag3DRotateCard** into your Xcode project using CocoaPods, specify it in your `Podfile`:

```ruby
use_frameworks!

pod 'Drag3DRotateCard'
```

Then, run the following command:

```bash
$ pod install
```

### Manually

If you prefer not to use a dependency manager, you can integrate Drag3DRotateCard into your project manually.

- Add sources into your project:
- Drag `Rotate3DImageView.swift`

## Usage

> If you are using any dependency manager (pods , carthage , package manager)to integrate Drag3DRotateCard. Import Drag3DRotateCard first:
> ```swift
> import Drag3DRotateCard
> ```

> And for Manuall install you dont need to import anything

You need to simply initiate imageView with two images like this

```swift
private var cardImage: Rotate3DImageView! = {
let imageView = Rotate3DImageView(frontImage: "frontCard", backImage: "backCard")
return imageView
}()
```

For better understanding framework inncludes example project as well

Congratulations! You're done.

## Contributing

I’d love to have help on this project. For small changes please [open a pull request](https://github.com/jwd-ali/Drag3DRotateCard/pulls), for larger changes please [open an issue](https://github.com/jwd-ali/Drag3DRotateCard/issues) first to discuss what you’d like to see.

License
-------

Drag3DRotateCard is under [MIT](https://opensource.org/licenses/MIT). See [LICENSE](LICENSE) file for more info.