The most complete open-source travel planner: real-time collaboration, bookings, budgets, packing lists, journals, offline PWA, SSO and an AI-ready MCP server, with planet-wide place search and routing built in.
TypeScript budget-trackercollaborativedockeritinerarymcp-serveroffline-firstopen-sourceopenstreetmappacking-listpwareal-timeself-hostedselfhostedtraveltravel-apptravel-journaltravel-plannertripitwanderlog
fix(ios): hide the status bar beside a corner element only on an iPhone
Mauriceb6006c8265d9
diff --git a/client/ios/App/App/TrekBridgeViewController.swift b/client/ios/App/App/TrekBridgeViewController.swiftindex 3fb43d6c1..8d1a07bcb 100644--- a/client/ios/App/App/TrekBridgeViewController.swift+++ b/client/ios/App/App/TrekBridgeViewController.swift@@ -121,7 +121,7 @@ class TrekBridgeViewController: CAPBridgeViewController {right: max(0, safe.right - (window.bounds.maxX - frame.maxX)))let corner = cornerElement(in: frame, window: window)- if corner != .zero, cornerWindowSizes.insert(sizeKey(window.bounds.size)).inserted {+ if corner != .zero, UIDevice.current.model == "iPhone", cornerWindowSizes.insert(sizeKey(window.bounds.size)).inserted {setNeedsStatusBarAppearanceUpdate()}if !force, insets == publishedSafeArea, corner == publishedCorner { return }@@ -151,7 +151,8 @@ class TrekBridgeViewController: CAPBridgeViewController {/// once seen: with the bar hidden the next measure may find no corner, and/// showing the bar again would bring the capsule back and start over. The/// folded and the unfolded display differ in size, so each keeps its own- /// answer, and a device without such an element never hides its bar.+ /// answer, and a device without such an element never hides its bar. Only+ /// on an iPhone: an iPad's window controls are such an element as well.private var cornerWindowSizes = Set<String>()private func sizeKey(_ size: CGSize) -> String {