Skip to content

Commit 806f23b

Browse files
wojasclaude
andcommitted
fix(mobile): iOS 26 scroll edge effect no longer hides composer text
UIKit on iOS 26 can attach a bar's scroll edge effect to the composer's UITextView. Its backdrop sits above the text layer, so typed text and the selection highlight vanish while the caret stays visible, until the app is backgrounded. Hide the text view's edge effects. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent cefb544 commit 806f23b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

‎apps/mobile/modules/t3-composer-editor/ios/T3ComposerEditorView.swift‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -473,6 +473,14 @@ public final class T3ComposerEditorView: ExpoView, UITextViewDelegate, UITextDro
473473
textView.alwaysBounceVertical = false
474474
textView.showsVerticalScrollIndicator = true
475475
textView.adjustsFontForContentSizeCategory = true
476+
if #available(iOS 26.0, *) {
477+
// UIKit can attach a nearby bar's scroll edge effect to this text view; its backdrop
478+
// then draws over the typed text while the caret stays visible.
479+
let edges = [textView.topEdgeEffect, textView.leftEdgeEffect, textView.bottomEdgeEffect, textView.rightEdgeEffect]
480+
for edge in edges {
481+
edge.isHidden = true
482+
}
483+
}
476484
textView.onPasteImages = { [weak self] urls in
477485
self?.onComposerPasteImages(["uris": urls])
478486
}

0 commit comments

Comments
 (0)