Skip to content
TypeScript

fix(mobile): iOS 26 scroll edge effect no longer hides composer text (#30138)

wojasbb61de277ea7
diff --git a/apps/mobile/modules/t3-composer-editor/ios/T3ComposerEditorView.swift b/apps/mobile/modules/t3-composer-editor/ios/T3ComposerEditorView.swift
index 63825398474..0f309363aad 100644
--- a/apps/mobile/modules/t3-composer-editor/ios/T3ComposerEditorView.swift
+++ b/apps/mobile/modules/t3-composer-editor/ios/T3ComposerEditorView.swift
@@ -483,6 +483,14 @@ public final class T3ComposerEditorView: ExpoView, UITextViewDelegate, UITextDro
textView.alwaysBounceVertical = false
textView.showsVerticalScrollIndicator = true
textView.adjustsFontForContentSizeCategory = true
+ if #available(iOS 26.0, *) {
+ // UIKit can attach a nearby bar's scroll edge effect to this text view; its backdrop
+ // then draws over the typed text while the caret stays visible.
+ let edges = [textView.topEdgeEffect, textView.leftEdgeEffect, textView.bottomEdgeEffect, textView.rightEdgeEffect]
+ for edge in edges {
+ edge.isHidden = true
+ }
+ }
textView.onPasteImages = { [weak self] urls in
self?.onComposerPasteImages(["uris": urls])
}