r/androiddev • u/Adventurous_Meal_151 • Dec 13 '25
How in the hell does Jetpack Compose TextField still not support basic spell check?
After several years of building apps with Jetpack Compose, there’s one question that always comes from product or design: “Can we underline misspelled words?”And every single time I have the same internal reaction: intensified eye twitching.
On the surface this sounds like the most basic thing ever. Something like a keyboardOptions flag, right? Except no — in Compose, enabling proper spell checking still means falling back to EditText inside Compose. Since Jetpack Compose TextField doesn’t have spell check implemented.
Meanwhile:
- Views: have had this out of the box forever - SpellCheckClient Reference
- Flutter: spell check is fully supported - SpellCheckConfiguration
- React Native: supports spellcheck on iOS, and with the JS ecosystem it’s trivial to wire things up.
So… what do we have in Jetpack Compose?
- A feature request opened in 2022: https://issuetracker.google.com/issues/230113955
- An attempted implementation approximately at the same time
- And basically no meaningful updates since then
Compose Multiplatform 1.9.0 introduced PlatformImeOptionsConfiguration.
I actually had a bit of hope — especially for iOS. But then you look closer. Apple has UITextInputTraits.spellCheckingType which determines whether spell-checking is enabled.
And yet… it’s conveniently omitted.
class PlatformImeOptionsConfiguration internal constructor() {
private var keyboardType: UIKeyboardType? = null
private var keyboardAppearance: UIKeyboardAppearance = UIKeyboardAppearanceDefault
private var returnKeyType: UIReturnKeyType? = null
private var textContentType: UITextContentType? = null
private var isSecureTextEntry: Boolean? = null
private var enablesReturnKeyAutomatically: Boolean = false
private var autocapitalizationType: UITextAutocapitalizationType? = null
private var autocorrectionType: UITextAutocorrectionType? = null
private var hasExplicitTextContentType: Boolean = false
private var inputView: UIView? = null
private var inputAccessoryView: UIView? = null
private var writingToolsBehavior: UIWritingToolsBehavior = UIWritingToolsBehaviorDefault
}If you care about this at all, I'm asking to show some activity on:
👉 https://issuetracker.google.com/issues/230113955
Maybe in 2026 we’ll finally get red squiggly lines
37
u/Zhuinden Dec 13 '25
On that same note, Jetpack Compose also doesn't support
android:hint's correspondinghintTextaccessibility attribute, so if you have a text field with a name in it, and there is any value filled in the TextField, then it no longer reads the label of the TextField (as there's also nothing analogous to `android:labelFor="@id/``).And if you're trying to write a banking app where you have to ask for a user's name, you're subject to EU regulations that say you should combine the "name" label with the edit field; so I guess you're supposed to use EditText in these cases 🤦
https://issuetracker.google.com/issues/236762951
15
u/equeim Dec 13 '25
It took them years to implement autofill support. I still haven't checked if it actually works (it wouldn't surprise me if it doesn't).
Text selection (via SelectionContainer) is still buggy, they haven't touched it since 1.0
4
u/lkesteloot Dec 13 '25
I have a medium-sized app (maybe 40k lines) in Java/Views and I'm so tempted to write new features in Compose. Roughly how much is there like this? I think I understand the benefits of Compose okay, but I have anxiety about the unknown unknowns of Compose. (Wouldn't have guessed this one, for example.)
1
u/[deleted] Dec 20 '25
WontFix
Closed
-19
u/llothar68 Dec 13 '25
compose is not really maintained anymore.