Skip to content

CedricEugeni/CircleProgressView

Repository files navigation

CircleProgressView

tvOS-UI Carthage compatible

CircleProgressView is an Infuse like circle progress view

CircleProgressView is inspired by the work of FireCore. This library is for now a tvOS Framework target but may become an iOS one too in the near future. The primary goal of the library is to display a completion percentage using a circle.

Example 0%

example00

Example 33%

example33

Example 75%

example75

Demo

Try CircleProgressView with the demo project available in this repo. (soon)

Installation

Carthage

Carthage is a decentralized dependency manager that builds your dependencies and provides you with binary frameworks.

You can install Carthage with Homebrew using the following command:

$ brew update
$ brew install carthage

To integrate CircleProgressView into your Xcode project using Carthage, specify it in your Cartfile:

github "CedricEugeni/CircleProgressView"

Run carthage update to build the framework and drag the built CircleProgressView.framework (in Carthage/Build/tvOS folder) into your Xcode project (Linked Frameworks and Libraries in Targets).

Manually

  • Drag the CircleProgressView.xcodeproj file into your project.
  • Add the CircleProgressView framework into Embedded Binaries.
  • Near Run button, select Manage scheme.
  • Select your app scheme.
  • Click on Edit.
  • Select Build on the left menu.
  • Uncheck Find Implicit Dependencies. This will prevent Xcode from compiling library each time you compile your app.

Usage

(see sample Xcode project in /Demo)

CircleProgressView is a UIView subclass. Everything goes with a property progress added to this class. When you set the progress property, this circle progress view is drawn in the frame you gave to this UIView.

To specify stroke and fille color, use the tintColor UIView attribute.

Just put a UIView in your storyboard or Xib file and tell this view its class is CircleProgressView in the inspector.

Contributing to this project

If you have feature requests or bug reports, feel free to help out by sending pull requests or by creating new issues.

License

CircleProgressView is distributed under the terms and conditions of the MIT license.

Credits

CircleProgressView is brought to you by Cédric Eugeni and contributors to the project. If you're using CircleProgressView in your project, attribution would be very appreciated.

About

Infuse like circle progress view

Resources

License

Stars

Watchers

Forks

Packages

No packages published