Skip to content

πŸ“± An re-implementation of the Apple's HUD.

License

Notifications You must be signed in to change notification settings

Bushtit/BlurHUD

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

5 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Meet BlurHUD

BlurHUD

Author EMail MIT
Version Platforms Swift
Build Passing Cocoapods Carthage SPM

🏡 Introduction

BlurHUD is an re-implementation of the Apple's HUD.

Preview

πŸ“‹ Requirements

Type Requirement

Platform

iOS

8.0+

macOS

N/A

tvOS

N/A

watchOS

N/A

Linux

N/A

IDE

Xcode

10.2+

Language

Swift

5+

πŸ“² Installation

CocoaPods

BlurHUD is available on CocoaPods.

use_frameworks!
pod 'BlurHUD'

Manually

Copy all files in the BlurHUD directory into your project.

πŸ›Œ Dependency

N/A

❀️ Contribution

You are welcome to fork and submit pull requests.

πŸ”– License

BlurHUD is open-sourced software, licensed under the MIT license.

πŸ”« Usage

import BlurHUD

BlurHUD.show(.error)
BlurHUD.hide(afterDelay: 2.0)
import BlurHUD

BlurHUD.flash(.success, delay: 2.0)
import BlurHUD

let image = ...
BlurHUD.flash(.rotatingImage(image), delay: 2.0)
import BlurHUD

BlurHUD.flash(.label("Requesting from the server..."), delay: 2.0) { _ in
    BlurHUD.flash(.labeledSuccess(title: nil, subtitle: "Obtained"), delay: 2.0)
}

Please note that the above demonstrates the "porcelain" interface - a more concise and clean way to work with the BlurHUD.

If you need more options and flexbility, feel free to use the underlying "plumbing". E.g.:

import BlurHUD

HUD.sharedHUD.show()
HUD.sharedHUD.contentView = HUDSuccessView(title: "Success!", subtitle: nil)
HUD.sharedHUD.hide(afterDelay: 2.0)

About

πŸ“± An re-implementation of the Apple's HUD.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published