Open GerardPaligot opened 1 year ago
Is your request related to a problem? Please describe.
Describe the solution you'd like
For now, when I would like to use vitaminTextFieldStyle or directly the Vitamin component, I can only pass a String for the label and helperText.
vitaminTextFieldStyle
String
label
helperText
public func vitaminTextFieldStyle( style: VitaminTextFieldStyle = .outlined, label: String, helperText: String? = nil, state: Binding<VitaminTextFieldState>, icon: VitaminTextField.IconConfiguration? = nil, characterLimit: VitaminTextField.CharacterLimitConfiguration? = nil )
We should add variant to support LocalizedStringKey in addition to the existing API.
LocalizedStringKey
public func vitaminTextFieldStyle( style: VitaminTextFieldStyle = .outlined, label: LocalizedStringKey, helperText: LocalizedStringKey? = nil, state: Binding<VitaminTextFieldState>, icon: VitaminTextField.IconConfiguration? = nil, characterLimit: VitaminTextField.CharacterLimitConfiguration? = nil )
Is your request related to a problem? Please describe.
Describe the solution you'd like
For now, when I would like to use
vitaminTextFieldStyle
or directly the Vitamin component, I can only pass aString
for thelabel
andhelperText
.We should add variant to support
LocalizedStringKey
in addition to the existing API.