Coder Social home page Coder Social logo

elchief84 / vrprogresshud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kubatruhlar/jtprogresshud

0.0 1.0 0.0 6.01 MB

HUD designed to show YOUR views (eg. UIImageView animations) in the HUD style with one line of code.

License: MIT License

Objective-C 94.81% Ruby 5.19%

vrprogresshud's Introduction

Version License Platform

VRProgressHUD

VRProgressHUD is only a fork of JTProgressHUD with a custom loading animation.

JTProgressHUD is the new HUD designed to show YOUR views (eg. UIImageView animations) in the HUD style with one line of code. You can see many HUDs with easy implementation, but the idea is that you want that easy implementation with HUD style (background that block views below so the user knows that something is processing), but want to show YOUR animations/views (could be your app’s animated logo). By DEFAULT one animation is also included/built-in.

“Custom”

Installation

There are two ways to add the VRProgressHUD library to your project. Add it as a regular library or install it through CocoaPods.

pod 'VRProgressHUD’

You may also quick try the example project with

pod try VRProgressHUD

Library requires target iOS 7.0 and above

Works in both - Portrait and Landscape modes

Usage and Customization

JTProgressHUD is designed as a singleton so you don't have to care about it's instances. Just use class methods - (void)show and - (void)hide or its variations.

Simple example:

// Your custom view
[VRProgressHUD showWithView:yourAnimationView];

// Built-in view
[VRProgressHUD show];

Methods:

View is your custom view (eg. Animated UIImageView or whatever you want). Style is the style of the background. Usually it is the dark color between the view and the rest of the app. Transition is showing and hiding transitions. BackgroundAlpha is the biggest alpha for the background. All parameters can be setup separately.

+ (void)showWithView:style:transition:backgroundAlpha:;
+ (void)show;
+ (void)showWithView:;
+ (void)showWithStyle:;
+ (void)showWithTransition:;
+ (void)showWithBackgroundAlpha:;

+ (void)hide;
+ (void)hideWithTransition:;

+ (BOOL)isVisible;

Author

This library is open-sourced by Jakub Truhlar. VRProgressHUD animation created by Vincenzo Romano.

License

The MIT License (MIT) Copyright © 2015 Jakub Truhlar

vrprogresshud's People

Contributors

kubatruhlar avatar vromano84 avatar borut-t avatar rahuljiresal avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.