Skip to content

Enable Native Text Input by default on iOS - #3603

Open
Andrei Salavei (ASalavei) wants to merge 5 commits into
jb-mainfrom
andrei.salavei/native-text-input-flag
Open

Andrei Salavei (ASalavei) wants to merge 5 commits into
jb-mainfrom
andrei.salavei/native-text-input-flag

Conversation

@ASalavei

@ASalavei Andrei Salavei (ASalavei) commented Nov 12, 2026 •

Copy link
Copy Markdown

Introduce IosComposeUiTextFlags.isNativeTextInputEnabled to control the default state of native text input on iOS. The flag is set to true by default, making native text input the standard behavior.

Update BasicTextField and CoreTextField to use the flag as a fallback when usingNativeTextInput is not explicitly set. Update PlatformImeOptions to reflect the new default.

Refactor iOS memory leak tests to cover both native and non-native text input variants.
Add FocusedTextField helper for consistent test setup.
Fix NativeTextInputConnection start order and refactor NativeTextInputView selection interaction attachment.

Fixes https://youtrack.jetbrains.com/issue/CMP-10974/Enable-Native-Text-Input-by-default-for-1.14-alpha

Release Notes

Highlights - iOS

  • (prerelease fix) Native Text Input is enabled by default for all text fields in alpha builds: the flag IosComposeUiTextFlags.isNativeTextInputEnabled defaults to true in alpha builds and to false in beta and release builds.

Introduce `IosComposeUiTextFlags.isNativeTextInputEnabled` to control
the default state of native text input on iOS. The flag is set to `true`
by default, making native text input the standard behavior.

Update `BasicTextField` and `CoreTextField` to use the flag as a fallback
when `usingNativeTextInput` is not explicitly set. Update
`PlatformImeOptions` to reflect the new default.

Refactor iOS memory leak tests to cover both native and non-native text
input variants. Add `FocusedTextField` helper for consistent test setup.
Fix `NativeTextInputConnection` start order and refactor
`NativeTextInputView` selection interaction attachment.
# Conflicts:
#	compose/ui/ui/src/uikitInstrumentedTest/kotlin/androidx/compose/ui/interaction/TextFieldEditMenuTest.kt
@kropp

Copy link
Copy Markdown
Member

Release Notes message LGTM, didn't review the rest

@ASalavei
Andrei Salavei (ASalavei) marked this pull request as ready for review November 12, 2026 12:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants