GithubHelp home page GithubHelp logo

greencamper / acprogresshud Goto Github PK

View Code? Open in Web Editor NEW

This project forked from erabhishekchandani/acprogresshud

0.0 1.0 0.0 15.2 MB

Lightweight ProgressHud for iOS apps in swift with some very awesome animations.

License: MIT License

Ruby 3.25% Swift 96.75%

acprogresshud's Introduction

ACProgressHUD

Lightweight control to show customisable Progress View in swift.

ACProgressHUD

Features

  • Show Progress Hud with only one line of code.
  • Customize the Progress HUD appeareance.
  • Make global configuration for Progress HUD to show the same HUD through out the app.
  • Show HUD with Animations.
  • Show HUD with blur Background.
  • Change the Show and Hide Animations for HUD.
  • The best is yet to come.

Installation

Installation with Cocopods

pod 'ACProgressHUD-Swift', '~> 1.2' 

Manual Installation

Download the Sample and drag & drop the ACProgressView.swift, ACProgressView.xib, ACProgressHUD.swift & ACHUD+Animation.swift files in your project.

How To Use.

1) Show Progress HUD.

let progressView = ACProgressHUD.shared
progressView.progressText = "Please wait..."
progressView.showHUD()

OR

ACProgressHUD.shared.showHUD()

2)Hide Progress HUD.

ACProgressHUD.shared.hideHUD()

##ACProgressHUD + Animation

1) Grow In - Grow Out Animation :- Show HUD with Grow In animation & dismiss HUD with Grow Out animation.

ACProgressHUD

2) Shrink In - Shrink Out Animation :- Show HUD with Shrink In animation & dismiss HUD with Shrink Out animation.

ACProgressHUD

3) Bounce In - Bounce Out Animation :- Show HUD with Bounce In animation & dismiss HUD with Bounce Out animation.

ACProgressHUD

4) Slide from Top - Slide To Bottom :- Show HUD sliding from top & dismiss by sliding to bottom.

ACProgressHUD

5) Bounce from Top - Bounce To Bottom :- Show HUD sliding from top & dismiss by sliding to bottom with bounce animation.

ACProgressHUD

6) Zoom In Out - Fade :- Show HUD with zoom in out animation & dismiss with fade animation.

ACProgressHUD

7) Show HUD with transparent background.

ACProgressHUD

8) Show HUD with Blur background.

ACProgressHUD

ACPRogressHUD Configuration

1) Configurate ACProgressHUD once anywhere in app with following method.

ACProgressHUD.shared.configureACProgressHudStyle(withProgressText: "Hey Please wait..",hudBackgroundColor: UIColor.white, shadowColor: UIColor.black, shadowRadius: 10, cornerRadius: 5, indicatorColor: UIColor.blue, enableBackground: false, backgroundColor: UIColor.black, backgroundColorAlpha: 0.3, enableBlurBackground: false,showHudAnimation: .growIn,dismissHudAnimation: .growOut)

2) Change progress HUD text.

ACProgressHUD.shared.progressText = "Please wait..."

3) Change progress HUD Shadow Color.

ACProgressHUD.shared.shadowColor = .black

4) Change progress HUD Shadow Radius.

ACProgressHUD.shared.shadowRadius = 10.0

5) Change HUD Corner Radius.

ACProgressHUD.shared.cornerRadius = 10.0

6) Change HUD Indicator Color.

ACProgressHUD.shared.indicatorColor = .black

7) Change HUD Background color.

ACProgressHUD.shared.hudBackgroundColor = .black

8) Show or hide Dim background when Progress View is shown.

ACProgressHUD.shared.enableBackground = true

9) Show or hide Blur background when Progress View is shown.

ACProgressHUD.shared.enableBlurBackground = true

10) Show or hide Blur background when Progress View is shown.

ACProgressHUD.shared.blurBackgroundColor = true

11) Select HUD show animation.

ACProgressHUD.shared.showHudAnimation = .growIn

12) Select HUD Dismiss animation.

ACProgressHUD.shared.dismissHudAnimation = .growOut

13) Change Progress label text color.

ACProgressHUD.shared.progressTextColor = .black

Communication

  • If you found a bug, open an issue.
  • If you have a feature request, open an issue.
  • If you want to contribute,please submit a pull request.

License

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

ACProgressHUD A Control by Er. Abhishek Chandani

acprogresshud's People

Watchers

 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.