Skip to content
This repository has been archived by the owner on Sep 6, 2022. It is now read-only.

Latest commit

 

History

History
75 lines (53 loc) · 2.61 KB

README.md

File metadata and controls

75 lines (53 loc) · 2.61 KB

LIHArcView

[![CI Status](http://img.shields.io/travis/Lasith Hettiarachchi/LIHArcView.svg?style=flat)](https://travis-ci.org/Lasith Hettiarachchi/LIHArcView) Version License Platform

Usage

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 LIHArcView
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

Requirements

iOS 7+

Installation

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

pod "LIHArcView"

Author

Lasith Hettiarachchi, [email protected]

License

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