mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
🐛 :: Fix not adding gradient loading bar to keyWindow, if keyWindow is already available
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user