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:
1 parent
85543cc0f6
commit
49e8cc2ca2
1 file changed
+1
-1
@@ -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