🐛 :: Fix not adding gradient loading bar to keyWindow, if keyWindow is already available

This commit is contained in:
Felix Mau
2018-09-08 16:36:30 +02:00
parent 85543cc0f6
commit 49e8cc2ca2
@@ -53,7 +53,7 @@ open class GradientLoadingBarController {
durations: Durations = .default,
gradientColorList: [UIColor] = UIColor.defaultGradientColorList,
isRelativeToSafeArea: Bool = true,
onView superview: UIView? = nil) {
onView superview: UIView? = UIApplication.shared.keyWindow) {
self.height = height
self.isRelativeToSafeArea = isRelativeToSafeArea