Latest 1.0.0
Homepage https://github.com/hoteltonight/HTGraphics
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.

Demo

See demo in https://github.com/hoteltonight/HTKit

Installation

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

pod 'HTGraphics'

http://cocoapods.org

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: http://engineering.hoteltonight.com

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": "https://github.com/hoteltonight/HTGraphics",
    "license": "MIT",
    "authors": {
        "Jacob Jennings": "[email protected]",
        "Ray Lillywhite": "[email protected]",
        "Jon Sibley": "[email protected]"
    },
    "source": {
        "git": "https://github.com/hoteltonight/HTGraphics.git",
        "tag": "1.0.0"
    },
    "source_files": [
        "Classes",
        "*.{h,m}"
    ],
    "frameworks": [
        "QuartzCore",
        "CoreGraphics"
    ],
    "requires_arc": true,
    "dependencies": {
        "HTRasterView": [
            "~> 1.2.9"
        ]
    }
}

Pin It on Pinterest

Share This