SwiftUI TextField / SecureField initializers do not allow specifying a custom Bundle for the localized string key.

Originator:bek
Number:rdar://FB9011181 Date Originated:19/2/2021
Status:Open Resolved:No
Product:SwiftUI Product Version:14.0
Classification:Suggestion Reproducible:Yes
 
Elements such as `Text` allow specifying a custom Bundle for looking up localizations.
Other elements, such as `Button` support custom `Label` types so that a `Text` using a custom Bundle can be injected.

TextField and SecureField have a generic `Label`, but no initializers for providing that Label and for the Label == Text case, there are no initializers allowing specifying the Bundle.

Comments


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!