All Projects → maxkonovalov → Mkringprogressview

maxkonovalov / Mkringprogressview

Licence: mit
⭕️ Ring progress view similar to Activity app on Apple Watch

Programming Languages

swift
15916 projects
ring
36 projects

Projects that are alternatives of or similar to Mkringprogressview

ALProgressView
Animated and fully customizable progress view with 2 styles: ring and bar.
Stars: ✭ 72 (-93.68%)
Mutual labels:  apple, progress-bar, circle, progress-circle
mp-progress
专注于小程序圆环形进度条的小工具
Stars: ✭ 72 (-93.68%)
Mutual labels:  progress, progress-bar, circle, progress-circle
Hgcircularslider
A custom reusable circular / progress slider control for iOS application.
Stars: ✭ 2,240 (+96.49%)
Mutual labels:  progress, progress-bar, circle, progress-circle
Jocircularslider
A highly customisable and reusable circular slider for iOS applications.
Stars: ✭ 128 (-88.77%)
Mutual labels:  progress, progress-bar, circle, progress-circle
React Sweet Progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 239 (-79.04%)
Mutual labels:  progress, progress-bar, progress-circle
Percircle
⭕️ CSS percentage circle built with jQuery
Stars: ✭ 217 (-80.96%)
Mutual labels:  progress-bar, circle, progress-circle
react-sweet-progress
A way to quickly add a progress bar to react app 🌈
Stars: ✭ 250 (-78.07%)
Mutual labels:  progress, progress-bar, progress-circle
tox-progress
This JavaScript library was made to easily create animated radial progress bars.
Stars: ✭ 13 (-98.86%)
Mutual labels:  progress, progress-bar, circle
GradientProgress
A gradient progress bar (UIProgressView).
Stars: ✭ 38 (-96.67%)
Mutual labels:  progress, progress-bar, gradient
Qier Progress
💃 Look at me, I am a slim progress bar and very colorful / 支持彩色或单色的顶部进度条
Stars: ✭ 307 (-73.07%)
Mutual labels:  progress, progress-bar
Circleprogressview
🎡 CircleProgressView是一个圆形渐变的进度动画控件(支持外环显示刻度,内环随之变化,配置参数完全可配),动画效果纵享丝滑。
Stars: ✭ 314 (-72.46%)
Mutual labels:  progress, circle
Ng2 Slim Loading Bar
Angular 2 component shows slim loading bar at the top of the page.
Stars: ✭ 376 (-67.02%)
Mutual labels:  progress, progress-bar
Gradient Widgets
Flutter widgets wrapped with gradients
Stars: ✭ 290 (-74.56%)
Mutual labels:  progress, gradient
Topbar
Tiny & beautiful site-wide progress indicator
Stars: ✭ 262 (-77.02%)
Mutual labels:  progress, progress-bar
Tqdm
A Fast, Extensible Progress Bar for Python and CLI
Stars: ✭ 20,632 (+1709.82%)
Mutual labels:  progress, progress-bar
VHProgressBar
Vartical and Horizontal ProgressBar
Stars: ✭ 23 (-97.98%)
Mutual labels:  progress, progress-bar
Arslineprogress
iOS progress bar, replacement for the default activity indicator.
Stars: ✭ 434 (-61.93%)
Mutual labels:  progress, progress-circle
Multiprogressview
📊 An animatable view that depicts multiple progresses over time. Modeled after UIProgressView
Stars: ✭ 614 (-46.14%)
Mutual labels:  progress, progress-bar
Cirque
An iOS component that enables you to draw multi color circle strokes with gradient trasitions between colors
Stars: ✭ 23 (-97.98%)
Mutual labels:  circle, gradient
Avatarview
A circular Image View with a lot of perks. Including progress animation and highlight state with borders and gradient color.
Stars: ✭ 429 (-62.37%)
Mutual labels:  progress-bar, progress-circle

MKRingProgressView

Language Platform License Version Carthage compatible

Ring progress view similar to Activity app on Apple Watch

MKRingProgressView

Features

  • Progress animation
  • Customizable start/end and backdrop ring colors
  • Customizable ring width
  • Customizable progress line end style
  • Customizable shadow under progress line end
  • Progress values above 100% (or 360°) can also be displayed

Installation

CocoaPods

To install MKRingProgressView via CocoaPods, add the following line to your Podfile:

pod 'MKRingProgressView'

Carthage

To install MKRingProgressView via Carthage, add the following line to your Cartfile:

github "maxkonovalov/MKRingProgressView"

Usage

See the example Xcode project. It contains 2 targets:

  • ProgressRingExample - a simple example containing a single progress ring with adjustable parameters.
  • ActivityRingsExample - an advanced usage example replicating Activity app by Apple. It also contains additional classes for convenient grouping of 3 ring progress views together.

Interface Builder

MKRingProgressView can be set up in Interface Builder. To use it, set the custom view class to MKRingProgressView. Most of the control's parameters can be customized in Interface Builder.

Code

let ringProgressView = RingProgressView(frame: CGRect(x: 0, y: 100, width: 100, height: 100))
ringProgressView.startColor = .red
ringProgressView.endColor = .magenta
ringProgressView.ringWidth = 25
ringProgressView.progress = 0.0
view.addSubview(ringProgressView)

The progress value can be animated the same way you would normally animate any property using UIView's block-based animations:

UIView.animate(withDuration: 0.5) {
    ringProgressView.progress = 1.0
}

Performance

To achieve better performance the following options are possible:

  • Set gradientImageScale to lower values like 0.5 (defaults to 1.0)
  • Set startColor and endColor to the same value
  • Set shadowOpacity to 0.0
  • Set allowsAntialiasing to false

Requirements

  • iOS 8.2
  • tvOS 9.0
  • Xcode 10, Swift 4+

License

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

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].