The best way to control Claude Code, Codex and more from any computer or phone
fix(mobile): Duo feed scroll indicator stays left of the vertical bar while streaming (#36063)
Julius Marminge committed
Nov 13, 2026 at 12:18 UTC
ca6e09c3e1191c8d46a9b97dd658ccb65dde8fcb
1 file changed
+19
-1
apps/mobile/modules/t3-native-controls/ios/T3ScrollEdgeBleedView.swift
+19
-1
@@ -19,6 +19,7 @@ final class T3ScrollEdgeBleedView: ExpoView {
19
/// React Native's clipping, saved while bleeding. React Native only rewrites it when the
20
/// `overflow` style changes, so it stays off while bleeding.
21
private var containerClipped: Bool?
22
+ private var indicatorObservations: [NSKeyValueObservation] = []
23
24
required init(appContext: AppContext? = nil) {
25
super.init(appContext: appContext)
@@ -136,12 +137,29 @@ 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
+ }
153
+ applied = bleeding
154
+ }
155
+
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
}
144
- applied = bleeding
163
}
164
165
private func detach() {