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

Lasithih/LIHArcView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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, lasithih@yahoo.com

License

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