icanzilb / SwiftSpinner

A beautiful activity indicator and modal alert written in Swift (originally developed for my app DoodleDoodle) Using blur effects, translucency, flat and bold design - all iOS 8 latest and greatest
MIT License
2.19k stars 268 forks source link

SwiftSpinner and status bar #133

Closed intacto27 closed 5 years ago

intacto27 commented 5 years ago

Hello, is it possible to use SwiftSpinner in application with active statusbar? now when i add SwiftSpinner to viewcontroller it works fine, but not cover statusbar.

andreamazz commented 5 years ago

Hey @intacto27 You can try to move your window level above the status bar when presenting the spinner:

UIApplication.shared.keyWindow?.windowLevel = UIWindow.Level.statusBar + 1

then set it back to normal:

UIApplication.shared.keyWindow?.windowLevel = UIWindow.Level.normal
andreamazz commented 5 years ago

Closing this. Feel free to reopen if needed.