Swiftui, Swift, iOS App Development, iOS Development, Mobile App Development.
.leading) And the definition of the drink’s name in Drink is as follows: struct Drink:Identifiable,Hashable,Comparable{ let id = UUID() let name:String //String 类型 let price:Double let calories:Double So the easiest way is to modify the code of ItemRowView. Text(LocalizedStringKey(item.drink.name))