BUStarView is a Fully customizable star view. Using this library you can create any star you want and edit any parameters which is forming star:
- number of vertices;
- inner radius;
- outer radius;
- inner round;
- outer round.
To run the example project, clone the repo, and run pod install
from the Example directory first.
BUStarView is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'BUStarView'
- Choose UIView from Object Library and drag it into your Xib.
- In Identity Inspector override class to BUStarView.
- In Attribute Inspector you can customize your star.
Create BUStarView like simple UIView
let starView = BUStarView()
view.addSubview(starView)
You can customize star properties by code:
// Number of vertices
starView.vertices = 5
//
vvlkv, [email protected]
BUStarView is available under the MIT license. See the LICENSE file for more info.