Skip to content

Commit d6f0248

Browse files
wojasclaude
andcommitted
fix(mobile): iOS composer text no longer turns invisible mid-draft
The composer reads UITextView.layoutManager for sizing, chip hit-testing and VoiceOver, which silently swaps a live TextKit 2 view to TextKit 1. When that swap lands mid-edit, typed text stays laid out but is never drawn. Create the text view on TextKit 1 so it never swaps. Co-Authored-By: Claude Opus 5.5 <[email protected]>
1 parent cefb544 commit d6f0248

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,9 @@ private final class ComposerTextView: UITextView {
419419
}
420420

421421
public final class T3ComposerEditorView: ExpoView, UITextViewDelegate, UITextDropDelegate, UIGestureRecognizerDelegate {
422-
private let textView = ComposerTextView()
422+
// This view reads `layoutManager`, which otherwise swaps a live TextKit 2 view to
423+
// TextKit 1 mid-edit; that swap can leave typed text laid out but never drawn.
424+
private let textView = ComposerTextView(usingTextLayoutManager: false)
423425
private let placeholderLabel = UILabel()
424426
private var value = ""
425427
private var tokensJson = "[]"

0 commit comments

Comments
 (0)