Latest 3.1.0
Homepage https://github.com/soberman/ARSLineProgress
License MIT
Platforms ios 8.0, requires ARC
Authors

ARSLineProgress

ARSLineProgress GitHub license Carthage compatible

iOS progress bar as a replacement for iOS activity indicator. This progress HUD will add some nice style touch to your application. Moreover, you can customize this progress loader through customization structure.

Infinite Success Fail No State Animation
ARSLineProgress Infinite ARSLineProgress Success ARSLineProgress Fail ARSLineProgress NoState
OK Error
ARSLineProgress OK ARSLineProgress Error

Installation

Carthage

To install with Carthage, simply specify this in your Cartfile:

github "soberman/ARSLineProgress" >= 3.1

In case you don’t have Carthage installed yet, you could do this with Homebrew:

$ brew update
$ brew install carthage

I would also advise to refer to this section of the Carthage description, for when you’re building for iOS, tvOS or WatchOS

CocoaPods

To install with CocoaPods, copy and paste this in your Podfile file:

use_frameworks!
platform :ios, '8.0'
pod 'ARSLineProgress', '~> 3.1'

Rookie way

You can always do it the old-fashioned way – just drag the source file into your projects and you are good to go.

Usage

ARSLineProgress makes it easy to use it – you have ARSLineProgress class, that offers you a wide range of class methods to show progress loader.

Showing

You can show progress indicator in two modes: infinite and progress.
Infinite one will be shown until you hide it.

class func show()
class func showWithPresentCompetionBlock(block: () -> Void)
class func showOnView(view: UIView)
class func showOnView(view: UIView, completionBlock: () -> Void)

class func hide()
class func hideWithCompletionBlock(block: () -> Void)

Progress indicator will be shown until the NSProgress object has the fractionCompleted value 1.0 or in case you have passed raw value – 100.0.

class func showWithProgressObject(progress: NSProgress)
class func showWithProgressObject(progress: NSProgress, completionBlock: (() -> Void)?)
class func showWithProgressObject(progress: NSProgress, onView: UIView)
class func showWithProgressObject(progress: NSProgress, onView: UIView, completionBlock: (() -> Void)?)

// Updating progress in case you are using on of the methods above:
class func updateWithProgress(value: CGFloat)

// initialValue should be from 0 to 100 in these methods
class func showWithProgress(initialValue value: CGFloat)
class func showWithProgress(initialValue value: CGFloat, completionBlock: (() -> Void)?)
class func showWithProgress(initialValue value: CGFloat, onView: UIView)
class func showWithProgress(initialValue value: CGFloat, onView: UIView, completionBlock: (() -> Void)?)

You are able to show just the ‘success’ checkmark or fail with these methods:

static func showSuccess()
static func showFail()
Hiding

Hiding progressHUD can be similar to what you have done so far with the infinite loader, or you could use these dedicated methods:

class func cancelPorgressWithFailAnimation(showFail: Bool)
class func cancelPorgressWithFailAnimation(showFail: Bool, completionBlock: (() -> Void)?)

Customization

You can customize progressHUD through the ARSLineProgressConfiguration structure, that offers you a wide range of customization. Any changes are going to be visible only if you have set them before showing preloader, otherwise they are going to be visible during your next show of preloader.

Once you have changed your mind and you want to restore ARSLineProgressConfiguration to its default parameters – use static func restoreDefaults() method.

Other

ARSLineProgress automatically responds to orientation changes, so it always going to be centered on the screen.

License

ARSLineProgress is released under the MIT license. See LICENSE for details.

Latest podspec

{
    "name": "ARSLineProgress",
    "version": "3.1.0",
    "summary": "iOS progress bar, replacement for the default activity indicator.",
    "description": "![ARSLineProgress](http://git.arsenkin.com/ARSLineProgress/ARSLineProgress.png)nn# ARSLineProgressniOS progress bar as a replacement for iOS activity indicator. This progress HUD will add some nice style touch to your application. Moreover, you can customize this progress loader through customization structure.nn|                Infinite               |               Success               |              Fail             |          No State Animation      |n| ------------------------------------- | ----------------------------------- | ----------------------------- | -------------------------------- |n| ![ARSLineProgress Infinite][Infinite] | ![ARSLineProgress Success][Success] | ![ARSLineProgress Fail][Fail] | ![ARSLineProgress NoState][NoState] |nn[Infinite]: http://git.arsenkin.com/ARSLineProgress/ARSLineProgress_infinite.gifn[Success]: http://git.arsenkin.com/ARSLineProgress/ARSLineProgress_progress_with_success.gifn[Fail]: http://git.arsenkin.com/ARSLineProgress/ARSLineProgress_progress_with_fail.gifn[NoState]: http://git.arsenkin.com/ARSLineProgress/ARSLineProgress_without_final_animation.gifnn## Installationnn### CarthagenTo install with [Carthage](https://github.com/Carthage/Carthage), simply specify this on your `Cartfile`:nn    github "soberman/ARSLineProgress" >= 3.1nnIn case you don't Carthage installed yet, you could do this with [Homebrew](http://brew.sh/):nn``` Bashn$ brew updaten$ brew install carthagen```nnI would also advise to refer to this section of the Carthage description, for when [you're building for iOS, tvOS or WatchOS](https://github.com/Carthage/Carthage#if-youre-building-for-ios-tvos-or-watchos)nn### CocoaPodsnTo install with [CocoaPods](http://cocoapods.org/), copy and paste this in your *Podfile* file:nn    use_frameworks!n    platform :ios, '8.0'n    pod 'ARSLineProgress', '~> 3.1'nn### Rookie waynYou can always to do the old way - just drag the source file into your projects and you are good to go.nn## UsagenARSLineProgress makes it easy to use it - you have `ARSLineProgress` class, that offer you a wide range of class methods to show progress loader.nn###### ShowingnYou can show progress indicator in two modes: infinite and progress.nInfinite progress will be shown until you hide it.n``` Swiftnclass func show()nclass func showWithPresentCompetionBlock(block: () -> Void)nclass func showOnView(view: UIView)nclass func showOnView(view: UIView, completionBlock: () -> Void)nnclass func hide()nclass func hideWithCompletionBlock(block: () -> Void)n```nnProgress indicator will be shown until the `NSProgress` object has the `fractionCompleted` value `1.0` or in case you have passed raw value - `100.0`.nn``` Swiftnclass func showWithProgressObject(progress: NSProgress)nclass func showWithProgressObject(progress: NSProgress, completionBlock: (() -> Void)?)nclass func showWithProgressObject(progress: NSProgress, onView: UIView)nclass func showWithProgressObject(progress: NSProgress, onView: UIView, completionBlock: (() -> Void)?)nn// Updating progress in case you are using on of the methods above:nclass func updateWithProgress(value: CGFloat)nn// initialValue should be from 0 to 100 in these methodsnclass func showWithProgress(initialValue value: CGFloat)nclass func showWithProgress(initialValue value: CGFloat, completionBlock: (() -> Void)?)nclass func showWithProgress(initialValue value: CGFloat, onView: UIView)nclass func showWithProgress(initialValue value: CGFloat, onView: UIView, completionBlock: (() -> Void)?)n```nnYou are able to show just the 'success' checkmark or fail with these methods:n``` Swiftnstatic func showSuccess()nstatic func showFail()n```nn###### HidingnHiding progressHUD is can be similar to what you have done so far with the infinite loader, or you could use these dedicated methods:nn``` Swiftnclass func cancelPorgressWithFailAnimation(showFail: Bool)nclass func cancelPorgressWithFailAnimation(showFail: Bool, completionBlock: (() -> Void)?)n```nn## CustomizationnYou can customize progressHUD through the `ARSLineProgressConfiguration` structure, that offers you a wide range of customization. Any changes are going to be visible only if you have set them before showing preloader, otherwise they are going to be visible during your next show of preloader.nnOnce you changed your mind and you want to restore ARSLineProgressConfiguration to its default parameters - use `static func restoreDefaults()` method.nn## OthernARSLineProgress automatically responds to orientation changes, so it always going to be centered on the screen.nn## LicensenARSLineProgress is released under the [MIT license](http://opensource.org/licenses/MIT). See LICENSE for details.",
    "homepage": "https://github.com/soberman/ARSLineProgress",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Yarik Arsenkin": "[email protected]"
    },
    "social_media_url": "http://twitter.com/Soberman777",
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/soberman/ARSLineProgress.git",
        "tag": "3.1.0"
    },
    "source_files": "Source/*",
    "exclude_files": [
        "Demo/*",
        "Carthage/*"
    ],
    "requires_arc": true,
    "pod_target_xcconfig": {
        "SWIFT_VERSION": "4.2"
    }
}

Pin It on Pinterest

Share This