Skip to content

BAProgressHUD is a lightweight and easy to use progress for iOS.

Notifications You must be signed in to change notification settings

bsenturk/BAProgressHUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 

Repository files navigation

BAProgressHUD

BAProgressHUD is a progress animation that easy to use displaying on progress.

Requirements

  • iOS 10.3+

Installation

pod 'BAProgressHUD'

Usage

Import BAProgressHUD

import BAProgressHUD

Show the progress HUD

let baProgressHUD = BAProgressHUD()
baProgressHUD.show(in: self.view)

You can use second style like that

let baProgressHUD = BAProgressHUD(style: .second)
baProgressHUD.show(in: self.view)

Show the progress HUD after delay

baProgressHUD.showAfterDelay(in: self.view, delay: 2)

Show the progress HUD with background view

baProgressHUD.showWithBackgroundView(in: self.view)

Show the progress HUD with background view after delay

baProgressHUD.showAfterDelayWithBackgroundView(in: self.view, delay: 1)

Hide the progress HUD

baProgressHUD.hide()

Hide the progress HUD after delay

baProgressHUD.hideAfterDelay(delay: 3)

Customization

BAProgressHUD can be customized with the following methods:

baProgressHUD.setDuration(duration: 0.8)
baProgressHUD.setColor(color: .orange)
baProgressHUD.setLineCap(lineCap: .round)
baProgressHUD.setBackgroundViewColor(color: .red)
baProgressHUD.setBackgroundViewAlpha(alpha: 0.7)

About

BAProgressHUD is a lightweight and easy to use progress for iOS.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published