Latest 0.1.3
License MIT
Platforms ios 8.0, requires ARC

[![CI Status]( Hettiarachchi/LIHArcView.svg?style=flat)]( Hettiarachchi/LIHArcView)


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

Using Storyboard

Drag UIView to your view controller and set "LIHArcView" as the class of the UIVIew.

Using Code

Import the module using

    import LIHAlert
let arcView = LIHArcView()
arcView.width = 10
arcView.arcColor = UIColor.blueColor

See the example project for more customizations.

You can change following properties

    public var startAngle:CGFloat //Default is 0
    public var endAngle:CGFloat //Default is 2*π
    public var isAnimatable: Bool //Default is false
    public var arcColor: UIColor //Default is UIColor.blueColor

    public var width: CGFloat //Default is 20.0

    public var isDashedLine: Bool //Default is false
    public var dashedLinePattern: [CGFloat] //Default is [width,width]

    public var isDottedLine: Bool //Default is false
    public var dottedSpacing: CGFloat = 40 //Default is width*2
    public var roundCorners: Bool //Default is false

    public var topPadding: CGFloat //Default is 0.0
    public var bottomPadding: CGFloat //Default is 0.0
    public var leftPadding: CGFloat //Default is 0.0
    public var rightPadding: CGFloat //Default is 0.0


iOS 7+


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

pod "LIHArcView"


Lasith Hettiarachchi, [email protected]


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

Latest podspec

    "name": "LIHArcView",
    "version": "0.1.3",
    "summary": "Highly customizable arc view",
    "description": "LIHArcView is can be used to draw and animate arcs.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Lasith Hettiarachchi": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.3"
    "platforms": {
        "ios": "8.0"
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "LIHArcView": [

Pin It on Pinterest

Share This