set tab bar appearance background

This commit is contained in:
Tienson Qin
2025-11-26 02:29:09 +08:00
parent 12bb84a1a6
commit 4e8b048a5c
3 changed files with 2 additions and 16 deletions

View File

@@ -37,6 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UINavigationControllerDel
_ = self.handleShortcutItem(shortcutItem)
}
}
return true
}

View File

@@ -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
}

View File

@@ -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(