Skip to content

Latest commit

 

History

History
78 lines (51 loc) · 2.15 KB

README.md

File metadata and controls

78 lines (51 loc) · 2.15 KB

WARDoorView

[![CI Status](http://img.shields.io/travis/Warif Akhand Rishi/WARDoorView.svg?style=flat)](https://travis-ci.org/Warif Akhand Rishi/WARDoorView) Version License Platform

Features

  • Written in Swift
  • Work on both Swift and Objective-C projects
  • Orientation support

Usage

To run the example project, clone the repo, and run pod install from the Example directory first.

Swift

import WARDoorView

public func doorOpen(angle: Double = default, duration: NSTimeInterval = default, delay: NSTimeInterval = default, completion: (() -> Void) = default)

public func doorClose(duration: NSTimeInterval = default, delay: NSTimeInterval = default, completion: (() -> Void) = default)

// Example
    warDoorViewObj.doorOpen(delay: 10)
//or 
    warDoorViewObj.doorOpen()

Objective-C

@import WARDoorView;

// Example
    [warDoorViewObj doorOpen:90 duration:2 delay:1 completion:^{
        //Door did open
    }];
    
    [warDoorViewObj doorClose:2 delay:1 completion:^{
        //Door did close
    }];

Requirements

  • iOS 8.0+
  • Xcode 7.1+

Installation

Embedded frameworks require a minimum deployment target of iOS 8

CocoaPods

WARDoorView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "WARDoorView"

Manually

Find the WARDoorView folder inside Pod/Classes

Author

Warif Akhand Rishi, rishi420@gmail.com

License

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