Skip to content

Commit 40bb950

Browse files
committed
Fixed an issue were indicator wasn't shown if the status bar was initially hidden
1 parent e86222f commit 40bb950

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

FTLinearActivityIndicator/Classes/UIApplication+LinearNetworkActivityIndicator.swift

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ extension UIApplication {
6262

6363
if visible {
6464
if indicatorWindow == nil {
65-
indicatorWindow = UIWindow(frame: statusBarFrame)
65+
let frame = CGRect(x: 0, y: 0, width: UIScreen.main.bounds.width, height: 12)
66+
indicatorWindow = UIWindow(frame: frame)
6667
indicatorWindow?.windowLevel = UIWindow.Level.statusBar + 1
6768
indicatorWindow?.isUserInteractionEnabled = false
6869

0 commit comments

Comments
 (0)