WARDoorView 2.1.0

WARDoorView 2.1.0

测试已测试
语言语言 SwiftSwift
许可证 MIT
发布最新发布2016年11月
SwiftSwift 版本3.0
SPM支持 SPM

Warif Akhand Rishi 维护。




  • Warif Akhand Rishi

WARDoorView

功能

  • [x] 使用 Swift 编写
  • [x] 支持Swift和Objective-C项目
  • [x] 支持方向

用法

要运行示例项目,克隆仓库,然后先从示例目录运行 pod install

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
    }];

要求

  • iOS 8.0+
  • Xcode 7.1+

安装

内嵌框架需要最低部署目标为 iOS 8

手动

Pod/Classes 中找到 WARDoorView 文件夹

作者

Warif Akhand Rishi,[email protected]

许可证

WARDoorView 可在 MIT 许可证下获得。有关更多信息,请参阅 LICENSE 文件。