Skip to content

AlexGivens/AGHeadsUpView

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AGHeadsUpView

AGHeadsUpView is an iOS library used to render text or a loading indicator in an unobtrusive HUD. Architected with multiple screen sizes and orientations in mind, AGHeadsUpView relies on Autolayout for drawing and animation. In addition, the background of each HUD uses Apple's UIBlurEffect for layered spacial contexts.

Getting Started

  • Download AGHeadsUpView and try the included example project.
  • Copy the "AGHeadsUpView" directory into your project
  • Import the header file at the top of your document, like so: #import "AGHeadsUpView.h"

Using AGHeadsUpView

AGHeadsUpView can show a HUD for a definite time. These methods are best for notifications of a singular action.

[AGHeadsUpView showLoadingViewWithDefiniteTime:2.0];
[AGHeadsUpView showText:@"Hello World" withDefiniteTime:2.0];

AGHeadsUpView can also show a HUD indefintely, to be manually dismissed later on. These methods are best for representing asynchronous network requests and other indeterminate tasks.

[AGHeadsUpView showLoadingView];
// Perform an asynchronous network task.
[AGHeadsUpView dismiss];

Requirements

AGHeadsUpView is supported on iOS 8.0+ and requires ARC.

Credits

AGHeadsUpView was originally designed and developed by Alex Givens for the Color Myx music player. The spinning loading indicator for AGHeadsUpView is provided by LLARingSpinnerView by Lukas Lipka. Both AGHeadsUpView and LLARingSpinnerView reside under the MIT License.

About

A simple HUD for iOS, built with 100% Autolayout.

Resources

License

Stars

Watchers

Forks

Packages

No packages published