Draw horizontal or vertical dotted line for iOS.
To run the example project, clone the repo, and run pod install
from the Example directory first.
Set View
into Interface Builder
Set custome class
Edit properties
import DottedLineView
let dottedLineView = DottedLineView(frame: CGRect(x: 0, y: 100, width: view.frame.width, height: 10))
dottedLineView.lineWidth = 8
dottedLineView.lineColor = UIColor.blueColor()
view.addSubview(dottedLineView)
- iOS 8.0+
- Xcode 7.3.1+
DottedLineView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "DottedLineView"
Kenji Abe, kenji@star-zero.com
DottedLineView is available under the MIT license. See the LICENSE file for more info.