Latest 0.0.9
Homepage https://github.com/seraphjiang/JHUIKit
License MIT
Platforms ios 8.0
Authors

CI Status
Version
License
Platform

Example

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

Requirements

XCode

Installation

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

pod "JHUIKit"

HowTO

  • How to use JHSwipeView
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);
    }
}
  • How to use JHProfileCardView
    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);
    }

Author

jianghuan, [email protected]

License

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

  • JHCircleImageView, show image view with a circle mask. widely used to render avatar of user.
  • JHSwipeView, base view to support tinder style swipe-able(left/right) card style view.
  • JHProfileHeaderView, header view for profile, album.
  • JHProfileCardView, tinder like profile card view. Inherited from JHSwipeView with more rich UI experience.

Latest podspec

{
    "name": "JHUIKit",
    "version": "0.0.9",
    "summary": "A UIKit Library with lots of customized View.",
    "description": "A UIKit Library with lots of customized View.n- JHCircleImageViewn- JHSwipeViewn- JHProfileHeaderViewn- JHProfileCardView",
    "homepage": "https://github.com/seraphjiang/JHUIKit",
    "license": "MIT",
    "authors": {
        "jianghuan": "[email protected]"
    },
    "source": {
        "git": "https://github.com/seraphjiang/JHUIKit.git",
        "tag": "0.0.9"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "JHUIKit/Classes/**/*"
}

Pin It on Pinterest

Share This