Skip to content

Model for operating pop-up views to notify users that some work is in progress

License

Notifications You must be signed in to change notification settings

yaole/ALLoadingView

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ALLoadingView

ALLoadingView is a class for displaying pop-up views to notify users that some work is in progress. Written in Swift 2.0

ALLV Screenshot 1 ALLV Screenshot 2 ALLV Screenshot 3

Installation

Manually

  • Drag the ALLoadingView.swift file into your project

Usage

Simple loading view with activity indicator

ALLoadingView.manager.showLoadingViewOfType(.Default, windowMode: .Windowed, completionBlock: nil)
ALLoadingView.manager.hideLoadingViewWithDelay(2.0)

Loading view with blurred background and button to cancel

ALLoadingView.manager.bluredBackground = true
ALLoadingView.manager.showLoadingViewOfType(.MessageWithIndicatorAndCancelButton, windowMode: .Fullsreen, completionBlock: nil)
ALLoadingView.manager.cancelCallback = {
  ALLoadingView.manager.hideLoadingView()
}

Resetting values to defaults

Loading view manager class is made as a singleton, so you can set different settings for loading view at various parts of your application. To drop settings, call -resetToDefaults()

Contact

License

MIT License

Copyright (c) 2015 Artem Loginov

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Model for operating pop-up views to notify users that some work is in progress

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%