Merge remote-tracking branch 'oleg/custom-profile-navbar'

Changelog-Added: Improved profile navbar
This commit is contained in:
OlegAba
2023-02-15 12:31:50 -08:00
committed by William Casarin
5 changed files with 306 additions and 256 deletions

View File

@@ -25,4 +25,12 @@ class Theme {
UINavigationBar.appearance().tintColor = tintColor ?? titleColor ?? .black
}
static var safeAreaInsets: UIEdgeInsets? {
return UIApplication
.shared
.connectedScenes
.flatMap { ($0 as? UIWindowScene)?.windows ?? [] }
.first { $0.isKeyWindow }?.safeAreaInsets
}
}