Latest 0.0.1
Homepage https://github.com/litt1e-p/CALayer-CurveMaker
License MIT
Platforms ios 8.0, requires ARC
Frameworks Foundation, UIKit
Authors

CALayer-CurveMaker

extension of making curve layers for UIView or CALayer

Usage

//init a view
let v = UIView(frame:CGRectMake(30, 40, 200, 100))
view.addSubview(v)
//make curve layer with positions & diretions
/**
positions: 
enum CurvePosition
{
    case CurvePositionTop
    case CurvePositionLeft
    case CurvePositionBottom
    case CurvePositionRight
}
diretions:
enum CurveDirection
{
    case CurveDirectionOutside
    case CurveDirectionInside
}
*/
v.layer.makeCurve(o, position: .CurvePositionLeft, direction: .CurveDirectionOutside, color: UIColor.yellowColor())

Install

  • manual import
    just download lib folder and add into your project

Screenshot

Release notes

ver 1.0

origin version.

Latest podspec

{
    "name": "CALayer+CurveMaker",
    "version": "0.0.1",
    "summary": "make curve layers for UIView or CALayer",
    "description": "a extension for making curve layers for UIView or CALayer",
    "homepage": "https://github.com/litt1e-p/CALayer-CurveMaker",
    "license": {
        "type": "MIT"
    },
    "authors": {
        "litt1e-p": "[email protected]"
    },
    "source": {
        "git": "https://github.com/litt1e-p/CALayer-CurveMaker.git",
        "tag": "0.0.1"
    },
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "CALayer+CurveMaker/*",
    "frameworks": [
        "Foundation",
        "UIKit"
    ]
}

Pin It on Pinterest

Share This