Skip to content

vvlkv/BUStarView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

BUStarView

CI Status Version License Platform

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.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

BUStarView is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BUStarView'

Usage

Storyboards

  1. Choose UIView from Object Library and drag it into your Xib.
  2. In Identity Inspector override class to BUStarView.
  3. In Attribute Inspector you can customize your star.

Code

Create BUStarView like simple UIView

let starView = BUStarView()
view.addSubview(starView)

You can customize star properties by code:

// Number of vertices
starView.vertices = 5
//

Author

vvlkv, vvlkv@icloud.com

License

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors