@devries-cameron20 / t3code Mirror · read-only / commits / 453bf01d20
Fork 0

The best way to control Claude Code, Codex and more from any computer or phone

Mirrored from https://github.com/Camo67/t3code.git

Synced Nov 22, 18:15 UTC

fix(mobile): the iPhone new-chat button sits beside the tab bar on iOS 26.6 (#24492)

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>

wojas committed Oct 25, 2026 at 09:04 UTC 453bf01d2068758fac79f9aa74099b2e85bbc719
1 file changed +7 -6
apps/mobile/modules/t3-native-controls/ios/T3SidebarTabBarView.swift
+7 -6
@@ -6,7 +6,10 @@ private final class WorkspaceTabBar: UITabBar {
6
7 override func layoutSubviews() {
8 super.layoutSubviews()
9 - let row = tabButtons(in: self).reduce(CGRect.null) { $0.union(convert($1.bounds, from: $1)) }
9 + // iOS 26.6 doesn't copy item identifiers onto its tab buttons; the bar holds no other controls.
10 + let identified = tabButtons(in: self) { $0.accessibilityIdentifier?.hasPrefix("workspace-tab-") == true }
11 + let buttons = identified.isEmpty ? tabButtons(in: self) { _ in true } : identified
12 + let row = buttons.reduce(CGRect.null) { $0.union(convert($1.bounds, from: $1)) }
13 if !row.isNull { onContentLayout?(row) }
14 }
15
@@ -15,12 +18,10 @@ private final class WorkspaceTabBar: UITabBar {
18 invalidateIntrinsicContentSize()
19 }
20
18 - private func tabButtons(in view: UIView) -> [UIView] {
21 + private func tabButtons(in view: UIView, matching match: (UIView) -> Bool) -> [UIView] {
22 view.subviews.filter { !$0.isHidden }.flatMap { subview in
20 - if subview is UIControl, subview.accessibilityIdentifier?.hasPrefix("workspace-tab-") == true {
21 - return [subview]
22 - }
23 - return tabButtons(in: subview)
23 + if subview is UIControl, match(subview) { return [subview] }
24 + return tabButtons(in: subview, matching: match)
25 }
26 }
27 }