Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jwd-ali/rprogressview
This animation is inspired from #Reddit application i downloaded few days back and love its progress view. so i try to implement that with number of customisations options. You can add as many number of circles you want ... You can have multicolour progress view also speed and width of circles are also customisable
https://github.com/jwd-ali/rprogressview
activity activity-indicator animation animations calayer carthage cashapelayer github ios progress progress-bar progress-view progressview reddit swift ui ui-components uibezierpath uikit
Last synced: 3 months ago
JSON representation
This animation is inspired from #Reddit application i downloaded few days back and love its progress view. so i try to implement that with number of customisations options. You can add as many number of circles you want ... You can have multicolour progress view also speed and width of circles are also customisable
- Host: GitHub
- URL: https://github.com/jwd-ali/rprogressview
- Owner: jwd-ali
- License: mit
- Created: 2020-09-08T07:20:49.000Z (over 4 years ago)
- Default Branch: master
- Last Pushed: 2020-09-08T15:38:00.000Z (over 4 years ago)
- Last Synced: 2024-03-15T04:47:26.936Z (11 months ago)
- Topics: activity, activity-indicator, animation, animations, calayer, carthage, cashapelayer, github, ios, progress, progress-bar, progress-view, progressview, reddit, swift, ui, ui-components, uibezierpath, uikit
- Language: Swift
- Homepage:
- Size: 3.16 MB
- Stars: 10
- Watchers: 3
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# RProgressView
> Inspired from Reddit app.... Add Progress Animation in just 2 steps in your view[![CI Status](https://travis-ci.org/jwd-ali/RingPieChart.svg)](https://travis-ci.org/jwd-ali/RingPieChart)
[![CocoaPods Version](https://img.shields.io/cocoapods/v/Drag3DRotateCard.svg?style=flat)](https://cocoapods.org/pods/Drag3DRotateCard)
[![Carthage Compatible](https://img.shields.io/badge/Carthage-compatible-0473B3.svg?style=flat)](https://github.com/Carthage/Carthage)
[![License](https://img.shields.io/cocoapods/l/RingPieChart.svg?style=flat)](https://cocoapods.org/pods/Drag3DRotateCard)
[![Platform](https://img.shields.io/cocoapods/p/RingPieChart.svg?style=flat)](https://cocoapods.org/pods/Drag3DRotateCard)
[![Swift 5.1](https://img.shields.io/badge/swift-5.1-orange)](https://swift.org)___
## Requirements
- iOS 10.0+ / Mac OS X 10.9+ / watchOS 2.0+ / tvOS 9.0+
- Xcode 8.0+## Installation
### [CocoaPods](http://cocoapods.org)
To integrate **RProgressView** into your Xcode project using CocoaPods, specify it in your `Podfile`:
```ruby
use_frameworks!pod 'RProgressView'
```Then, run the following command:
```bash
$ pod install
```
### [Carthage](http://github.com/Carthage/Carthage)To integrate `RProgressView` into your Xcode project using Carthage, specify it in your `Cartfile`:
```ogdl
github "jwd-ali/RProgressView"
```
### ManuallyIf you prefer not to use a dependency manager, you can integrate **RProgressView** into your project manually.
- Add sources into your project:
- Drag `RProgressView.swift` and `CALayer+Extension.swift`### Usage
If you are using any dependency manager (pods , carthage , package manager)to integrate RProgressView. Import RProgressView first:
> ```swift
> import RProgressView
> ```And for Manuall install you dont need to import anything
You need to simply initiate progressView
> ```swift
> var progessView = RProgressView()
> ```You can set number of circles you want in your progress view set `numberOfCircles` property
> ```swift
> progress.numberOfCircles = 4
> ```You can show multi color Circles for that turn on `isMultiColour` to true and add colours `dotColors` according to number of circles like this
> ```swift
> private lazy var progessViewMultiColour:RProgressView = {
> let progress = RProgressView()
> progress.isMultiColour = true
> progress.mainDotColor = .black
> progress.dotColors = [.red, .green, .blue , .brown]
> progress.numberOfCircles = 4
> return progress
> }()
> ```And if you want to show it i one colour you need. to set `isMultiColour` to false and you don't need to give `dotColors` as they are not needed
> ```swift
>. private lazy var progessViewPlain:RProgressView = {
> let progress = RProgressView()
> progress.isMultiColour = false
> progress.numberOfCircles = 2
> progress.translatesAutoresizingMaskIntoConstraints = false
> return progress
> }()
> ```Then in which view you want to show progress call
> ```swift
> progess.StartAnimating(in: self.view)
> ```To stop and hide call
> ```swift
> progess.stopAnimating()
> ```For better understanding framework includes example project as well
Congratulations! You're done.## Contributing
I’d love to have help on this project. For small changes please [open a pull request](https://github.com/jwd-ali/RProgressView/pulls), for larger changes please [open an issue](https://github.com/jwd-ali/RProgressView/issues) first to discuss what you’d like to see.
License
-------RProgressView is under [MIT](https://opensource.org/licenses/MIT). See [LICENSE](LICENSE) file for more info.