mirror of
https://github.com/logseq/logseq.git
synced 2026-04-24 14:14:55 +00:00
set tab bar appearance background
This commit is contained in:
@@ -37,6 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UINavigationControllerDel
|
||||
_ = self.handleShortcutItem(shortcutItem)
|
||||
}
|
||||
}
|
||||
|
||||
return true
|
||||
}
|
||||
|
||||
|
||||
@@ -40,8 +40,7 @@ class NativePageViewController: UIViewController, UIGestureRecognizerDelegate {
|
||||
let popGesture = nav.interactivePopGestureRecognizer else { return }
|
||||
|
||||
popGesture.delegate = self
|
||||
let isSidebar = (targetPath == "/left-sidebar")
|
||||
popGesture.isEnabled = !isSidebar && nav.viewControllers.count > 1
|
||||
popGesture.isEnabled = nav.viewControllers.count > 1
|
||||
}
|
||||
|
||||
func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
|
||||
@@ -50,9 +49,6 @@ class NativePageViewController: UIViewController, UIGestureRecognizerDelegate {
|
||||
gestureRecognizer === nav.interactivePopGestureRecognizer
|
||||
else { return true }
|
||||
|
||||
if targetPath == "/left-sidebar" {
|
||||
return false
|
||||
}
|
||||
return nav.viewControllers.count > 1
|
||||
}
|
||||
|
||||
|
||||
@@ -25,17 +25,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
|
||||
appDelegate.navController = nav
|
||||
}
|
||||
|
||||
if #available(iOS 15.0, *) {
|
||||
let appearance = UINavigationBarAppearance()
|
||||
// Transparent: no blur, no background color
|
||||
appearance.configureWithTransparentBackground()
|
||||
appearance.shadowColor = .clear
|
||||
|
||||
nav.navigationBar.standardAppearance = appearance
|
||||
nav.navigationBar.scrollEdgeAppearance = appearance
|
||||
nav.navigationBar.compactAppearance = appearance
|
||||
}
|
||||
|
||||
let rootPath = "/"
|
||||
// Start with NO title so "Logseq" isn't shown during splash.
|
||||
let rootVC = NativePageViewController(
|
||||
|
||||
Reference in New Issue
Block a user