All Projects → soberman → Arslineprogress

soberman / Arslineprogress

Licence: mit
iOS progress bar, replacement for the default activity indicator.

Programming Languages

swift
15916 projects

Projects that are alternatives of or similar to Arslineprogress

Dockprogress
Show progress in your app's Dock icon
Stars: ✭ 813 (+87.33%)
Mutual labels:  cocoapods, carthage, progress-circle
Circularprogress
Circular progress indicator for your macOS app
Stars: ✭ 366 (-15.67%)
Mutual labels:  cocoapods, carthage, progress-circle
Gradientcircularprogress
Customizable progress indicator library in Swift
Stars: ✭ 407 (-6.22%)
Mutual labels:  cocoapods, carthage, progress-circle
Apesuperhud
A simple way to display a HUD with a message or progress information in your application.
Stars: ✭ 156 (-64.06%)
Mutual labels:  cocoapods, carthage, progress
Multiprogressview
📊 An animatable view that depicts multiple progresses over time. Modeled after UIProgressView
Stars: ✭ 614 (+41.47%)
Mutual labels:  cocoapods, carthage, progress
Svprogresshud
A clean and lightweight progress HUD for your iOS and tvOS app.
Stars: ✭ 12,339 (+2743.09%)
Mutual labels:  cocoapods, carthage, progress
Tweetextfield
Lightweight set of text fields with nice animation and functionality. 🚀 Inspired by https://uimovement.com/ui/2524/input-field-help/
Stars: ✭ 421 (-3%)
Mutual labels:  cocoapods, carthage
Ssspinnerbutton
Forget about typical stereotypic loading, It's time to change. SSSpinnerButton is an elegant button with a diffrent spinner animations.
Stars: ✭ 357 (-17.74%)
Mutual labels:  cocoapods, carthage
Xcglogger
A debug log framework for use in Swift projects. Allows you to log details to the console (and optionally a file), just like you would have with NSLog() or print(), but with additional information, such as the date, function name, filename and line number.
Stars: ✭ 3,710 (+754.84%)
Mutual labels:  cocoapods, carthage
Foldingtabbar.ios
Folding Tab Bar and Tab Bar Controller
Stars: ✭ 3,677 (+747.24%)
Mutual labels:  cocoapods, carthage
Restofire
Restofire is a protocol oriented networking client for Alamofire
Stars: ✭ 377 (-13.13%)
Mutual labels:  cocoapods, carthage
Hokusai
A Swift library to provide a bouncy action sheet
Stars: ✭ 431 (-0.69%)
Mutual labels:  cocoapods, carthage
Gzipswift
Swift framework that enables gzip/gunzip Data using zlib
Stars: ✭ 356 (-17.97%)
Mutual labels:  cocoapods, carthage
Viperit
Viper Framework for iOS using Swift
Stars: ✭ 404 (-6.91%)
Mutual labels:  cocoapods, carthage
Observable
The easiest way to observe values in Swift.
Stars: ✭ 346 (-20.28%)
Mutual labels:  cocoapods, carthage
Pagecontroller
Infinite paging controller, scrolling through contents and title bar scrolls with a delay
Stars: ✭ 344 (-20.74%)
Mutual labels:  cocoapods, carthage
Swiftyxmlparser
Simple XML Parser implemented in Swift
Stars: ✭ 413 (-4.84%)
Mutual labels:  cocoapods, carthage
Taggerkit
🏷 TaggerKit helps you to quickly implement tags in your UIKit apps, so you can go on and test your idea without having to worry about logic and custom collection layouts.
Stars: ✭ 390 (-10.14%)
Mutual labels:  cocoapods, carthage
Stepslider
StepSlider its custom implementation of slider such as UISlider for preset integer values.
Stars: ✭ 391 (-9.91%)
Mutual labels:  cocoapods, carthage
Chromacolorpicker
🎨 An intuitive iOS color picker built in Swift.
Stars: ✭ 434 (+0%)
Mutual labels:  cocoapods, carthage

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.

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].