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 21, 11:00 UTC
fix(mobile): Duo scroll indicator sits past the vertical bar, at the screen edge (#37265)
Julius Marminge committed
Nov 15, 2026 at 08:24 UTC
073989f022d4b130917d5a6e18094b238c7d4048
1 file changed
+3
-25
apps/mobile/modules/t3-native-controls/ios/T3ScrollEdgeBleedView.swift
+3
-25
@@ -4,8 +4,9 @@ import UIKit
4
/// Wraps a screen's header scroll view. Where a column pads its content away from the iPhone Duo's
5
/// vertical bar, this widens the scroll view under the bar, like the system apps' lists. UIKit
6
/// draws the header's scroll-edge effect inside the scroll view, so the blur reaches the bar while
7
-/// the content stays in the safe area. Everything happens in UIKit layout, so folds move the blur
8
-/// and the content together.
7
+/// the content stays in the safe area, and the scroll indicator runs along the screen edge past the
8
+/// bar, as in Messages. Everything happens in UIKit layout, so folds move the blur and the content
9
+/// together.
10
final class T3ScrollEdgeBleedView: ExpoView {
11
// Fabric recycles scroll views, so everything changed here is put back before this view leaves
12
// the window, which unmounting does before any recycling.
@@ -19,7 +20,6 @@ final class T3ScrollEdgeBleedView: ExpoView {
20
/// React Native's clipping, saved while bleeding. React Native only rewrites it when the
21
/// `overflow` style changes, so it stays off while bleeding.
22
private var containerClipped: Bool?
22
- private var indicatorObservations: [NSKeyValueObservation] = []
23
24
required init(appContext: AppContext? = nil) {
25
super.init(appContext: appContext)
@@ -137,31 +137,9 @@ final class T3ScrollEdgeBleedView: ExpoView {
137
containerClipped = containerClipped ?? true
138
container.layer.masksToBounds = false
139
}
140
- applyIndicatorInset()
141
- // React Native rewrites every indicator inset when its `scrollIndicatorInsets` prop changes,
142
- // which the keyboard-aware list animates while a reply streams; put the inset back at once.
143
- if bleeding, indicatorObservations.isEmpty {
144
- let keyPaths = [\UIScrollView.verticalScrollIndicatorInsets, \.scrollIndicatorInsets]
145
- indicatorObservations = keyPaths.map {
146
- scrollView.observe($0) { [weak self] _, _ in
147
- MainActor.assumeIsolated { self?.applyIndicatorInset() }
148
- }
149
- }
150
- } else if !bleeding {
151
- indicatorObservations = []
152
- }
140
applied = bleeding
141
}
142
156
- private func applyIndicatorInset() {
157
- guard let scrollView else { return }
158
- var indicators = scrollView.verticalScrollIndicatorInsets
159
- if indicators.right != bleed.right {
160
- indicators.right = bleed.right
161
- scrollView.verticalScrollIndicatorInsets = indicators
162
- }
163
- }
164
-
143
private func detach() {
144
guard scrollView != nil else { return }
145
bleed = .zero