Inside the Interface Builder:
iOS Simulator:
Features
- Customizable width and color for line and border of the outer/inner circle.
- Customizable text label.
- Customizable color, opacity, radius, and offset for shadow of the inner and outer circle
- Supports the iOS 8 adaptive layout
- You can change all of this in the interface builder or in runtime.
Example Usage In Runtime
circleView.outerRadius = 20
circleView.oColor = UIColor(red: 244/255, green: 156/255, blue: 45/255, alpha: 1)
circleView.percentage = 75
circleView.fontSize = 25
circleView.noOfDecimals = 0
circleView.animateCircle(1.0)
To get the sample code, please visit this site.
0 nhận xét:
Đăng nhận xét