Git Product home page Git Product logo

drag3drotatecard's Introduction

Drag3DRotateCard

CI Status CocoaPods Version Carthage Compatible License Platform Swift 5.1

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

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

use_frameworks!

pod 'Drag3DRotateCard'

Then, run the following command:

$ 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:

import Drag3DRotateCard

And for Manuall install you dont need to import anything

You need to simply initiate imageView with two images like this

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, for larger changes please open an issue first to discuss what you’d like to see.

License

Drag3DRotateCard is under MIT. See LICENSE file for more info.

drag3drotatecard's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.