xiaolouxinyue / ProgressHUD-Mac

A Progress HUD for Mac

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ProgressHUD

ProgressHUD is a clean and easy-to-use HUD meant to display the progress of an ongoing task of a status message on macOS.

Build Status macOS Swift 5.0 License Twitter PRs Welcome

Displays a simple HUD containing an optional progress indicator or cusom view and optional status message.

The ProgressHUD spans over the entire screen or in the containerView if provided.

Indeterminate

Features

  • Easy to use API
  • Present a HUD over the whole screen or within a window or view
  • Sensible defaults for one line instantiation
  • Highly customizable theme and settings
  • Option to prevent user operations on components below the view
  • Optional completion handler called when HUD is completely hidden
  • Appear and Disappear notifications

Requirements

  • macOS 10.11+
  • Xcode 10

Installation

CocoaPods

  • TODO

Manually

  1. Download and drop ProgressHUD.swift in your project.
  2. Congratulations!

Usage example

One liner:

ProgressHUD.showSuccessWithStatus("Success!")

Customization example:

ProgressHUD.setDefaultStyle(.custom(foreground: .yellow, backgroud: .red))
ProgressHUD.setDefaultMaskType(.black)
ProgressHUD.setDefaultPosition(.center)

See demo app for more examples and read documentation for the APIs in the ProgreessHUD.swift file.

Contribute

We would love you for any contribution to ProgressHUD, check the LICENSE file for more info.

Meta

ProgressHUD was inspired by SVProgressHUD and MBProgressHUD-OSX

Massimo Biolcati – @MassimoBi0lcati @iRealProApp

ProgressHUD is distributed under the terms and conditions of the MIT license.

About

A Progress HUD for Mac

License:Other


Languages

Language:Swift 100.0%