Przeglądaj źródła

set tab bar appearance background

Tienson Qin 3 miesięcy temu
rodzic
commit
4e8b048a5c

+ 1 - 0
ios/App/App/AppDelegate.swift

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

+ 1 - 5
ios/App/App/NativePageViewController.swift

@@ -40,8 +40,7 @@ class NativePageViewController: UIViewController, UIGestureRecognizerDelegate {
               let popGesture = nav.interactivePopGestureRecognizer else { return }
               let popGesture = nav.interactivePopGestureRecognizer else { return }
 
 
         popGesture.delegate = self
         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 {
     func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool {
@@ -50,9 +49,6 @@ class NativePageViewController: UIViewController, UIGestureRecognizerDelegate {
             gestureRecognizer === nav.interactivePopGestureRecognizer
             gestureRecognizer === nav.interactivePopGestureRecognizer
         else { return true }
         else { return true }
 
 
-        if targetPath == "/left-sidebar" {
-            return false
-        }
         return nav.viewControllers.count > 1
         return nav.viewControllers.count > 1
     }
     }
 
 

+ 0 - 11
ios/App/App/SceneDelegate.swift

@@ -25,17 +25,6 @@ class SceneDelegate: UIResponder, UIWindowSceneDelegate {
             appDelegate.navController = nav
             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 = "/"
         let rootPath = "/"
         // Start with NO title so "Logseq" isn't shown during splash.
         // Start with NO title so "Logseq" isn't shown during splash.
         let rootVC = NativePageViewController(
         let rootVC = NativePageViewController(