material-components-ios
material-components-ios copied to clipboard
[MDCTextField] in RTL alignment misleading
Iam facing alignment problem for placeholder of MDCTextField when changing from LTR to RTL
any clue to fix that ??
when start editing the textField, the alignment is fixed, but initial state has that problem
Internal data
- Associated internal bug: b/147295960
The title doesn't have a [Component] prefix.
We just released a new possible replacement for MDCTextFields living under the "TextControls" component. One of the textfields, the MDCOutlinedTextField, looks like it would meet your needs. Would you be interested in trying it and seeing if it has the same issue?
@andrewoverton i fixed the RTL problem using
semanticContentAttribute = Language.isArabic() ? .forceRightToLeft : .forceLeftToRight
but i have another problem, the limitation to change corner radius to a value of 12 instead of the default constant 4 set by the library does the new component have access to change the cornerRadius property ?
The new textfield does not currently expose a means of setting corner radius on the outline.
+1. Facing the same issue on MDCOutlinedTextField. Alignment is RTL when the textfield is loaded in the view but as soon as the editing begins, the alignment changes to LTR. (The leading view appears in the correct place though)
