TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | May 2016 |
SPMSupports SPM | ✗ |
Maintained by Huan Jiang.
To run the example project, clone the repo, and run pod install
from the Example directory first.
XCode
JHUIKit is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "JHUIKit"
import UIKit
import JHUIKit
class ViewController: UIViewController {
let runtimeConstants = RuntimeConstants()
override func viewDidLoad() {
super.viewDidLoad()
let superView = UIView(frame: CGRectMake(runtimeConstants.CardMarginWidth, self.runtimeConstants.CardTop, self.runtimeConstants.CardWidth, runtimeConstants.AdaptiveCardHeight))
let cardView = JHSwipeView(frame: superView.bounds)
superView.addSubview(cardView)
self.view.addSubview(superView);
}
}
func addPersonCard()
{
let superView = UIView(frame: CGRectMake(runtimeConstants.CardMarginWidth, self.runtimeConstants.CardTop, self.runtimeConstants.CardWidth, runtimeConstants.AdaptiveCardHeight))
personView = JHProfileCardView(frame: superView.bounds, image: UIImage(named: "mask")!)
personView!.swipeViewDelegate = self
superView.addSubview(personView!)
self.view.addSubview(superView);
}
jianghuan, [email protected]
JHUIKit is available under the MIT license. See the LICENSE file for more info.