Closed mergesort closed 1 year ago
The placeholder
property is a String
so I'm not sure what would be an appropriate API to expose here.
Have you tried using NSLocalizedString(...)
?
Oh duh, I've been working with SwiftUI so long that I completely forgot about NSLocalizedString as a viable option. Sorry about that, everything works great now!
The current
ResponsiveTextField
initializer supports aplaceholder
property, but I can't find a way to pair it with aLocalizedString
.This is preventing me from using localized text like
"ICON_SELECTION_VIEW_SEARCH_BAR_PLACEHOLDER_TEXT" = "Find an icon";
. I tried going through theconfiguration
property as well, is there any way to use localized strings with the placeholder property that I'm overlooking?