Latest 1.0.0
License MIT
Platforms ios 5.0, requires ARC
Dependencies HTRasterView
Frameworks QuartzCore, CoreGraphics
Authors , ,

HTGraphics is a set of tools for drawing custom UI elements, including:

  • HTHighlightedShapeView – Add a highlight effect to arbitrary UIBezierPaths
  • HTRadialGradientView – Highly customizable radial gradient view
  • HTShapeView – UIView wrapper around CAShapeLayer
  • HTGraphicsUtilities.h contains useful functions like:
HTPointAtAngleAndDistanceFromPoint(CGPoint fromPoint, CGFloat angle, CGFloat distance)
HTCenterSizeInRect(CGSize size, CGRect rect)
HTSizeInset(CGSize size, CGFloat xInset, CGFloat yInset)
HTSizeEdgeInset(CGSize size, UIEdgeInsets edgeInsets)
HTSizeScale(CGSize size, CGFloat scale)
HTRectGrowSide(CGRect rect, CGRectEdge edge, CGFloat distance)

HTHighlightedShapeView and HTRadialGradientView can be rasterized using HTRasterView.


See demo in


The recommended installation method is cocoapods. Add this line to your Podfile:

pod 'HTGraphics'

HTRasterView is a dependency for those who don’t cocoapods.

Contributions welcome!

Use it? Love/hate it?

Tweet the authors @jakejennings, @raylillywhite and @jonsibs, and check out HotelTonight’s engineering blog:

Also, check out HotelTonight’s other iOS open source:

Latest podspec

    "name": "HTGraphics",
    "version": "1.0.0",
    "platforms": {
        "ios": "5.0"
    "summary": "A small set of graphics tools for drawing custom UI.  Highlight arbitrary shapes, create radial gradients, etc.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Jacob Jennings": "[email protected]",
        "Ray Lillywhite": "[email protected]",
        "Jon Sibley": "[email protected]"
    "source": {
        "git": "",
        "tag": "1.0.0"
    "source_files": [
    "frameworks": [
    "requires_arc": true,
    "dependencies": {
        "HTRasterView": [
            "~> 1.2.9"

Pin It on Pinterest

Share This