- 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
- Developed using xcode v8.0
You can change all of this in the interface builder or in runtime.
More information on github
Drag the BCDoughtnutPercentageFramework from BCDoughtnutpercentageContents folder to your project. And after, go to “General” where you should see “Embedded Libraries”, from there add the framework.
Next, add all the files from BCDoughtnutPercentageView to your project by dragging the folder.
You can now use the BCDoughnutPercentageView as the class of uiview. Drag a UIview from the object library then change its class name to “BCDoughnutPercentageView”. You can now customize its properties from the attribute inspector.