When creating a custom view, it is common to init with a String, either with localization or not. This post will explore a few ways to init the custom view (largely depends on your requirement). Take a simple TagView as an example. structTagView:View{lettext:LocalizedStringKeyvarbody:someView{Text(text).padding().background(RoundedRectangle(cornerRadius:4).strokeBorder(.green,lineWidth:1))}} In the above, the view simply provide the LocalizedStringKey property. This supports localization as o...