How to create an uppercase version of a String in SwiftUI?
For those who want to use LocalizedStringKey. Since iOS 14 you can use .textCase(.uppercase)
on Text.
Text(LocalizedStringKey("keyName"))
.textCase(.uppercase)
You can do this simply in this way
Text("Hello World!".uppercased())
For LocalizedStringKey
you can use this.
Text(LocalizedStringKey("keyName")).textCase(.uppercase)