Skip to content

Commit

Permalink
fix: 灵动岛状态栏高度异常
Browse files Browse the repository at this point in the history
  • Loading branch information
gaoxiang committed Apr 26, 2024
1 parent 2b955ce commit 5fcb228
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions EachNavigationBar/Classes/EachNavigationBar.swift
Original file line number Diff line number Diff line change
Expand Up @@ -271,13 +271,9 @@ extension EachNavigationBar {
}

var barMinY: CGFloat {
if let superNavigationBar = superNavigationBar, superNavigationBar.frame.minY > 0 {
return superNavigationBar.frame.minY
}

let window = window ?? UIApplication.shared.windows.first { $0.isKeyWindow }

return window?.windowScene?.statusBarManager?.statusBarFrame.maxY ?? 0
return window?.safeAreaInsets.top ?? 0
}

func adjustsLayout() {
Expand Down

0 comments on commit 5fcb228

Please sign in to comment.