Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 615 Bytes

File metadata and controls

17 lines (12 loc) · 615 Bytes

LoadingOverlay

A simple Overlay view

This is a tiny project as result of this Stackoverflow question

How to use

Just downlaod the LoadingOverlay.swift file into your project and then from you view controller:

//to show: 
LoadingOverlay.shared.showOverlay(superView:self.view) // in this case, self.view is the controller's view

//to hide: 
LoadingOverlay.shared.hideOverlay()

The overlay view will be placed at the center of the view passed as parameter on showOverlay method.