Contents

synonyms

A list of localized phrases that are synonyms of this particular type display representation

Declaration

var synonyms: [LocalizedStringResource]

Discussion

Example:

struct PizzaEntity: AppEntity {
    static var typeDisplayRepresentation = TypeDisplayRepresentation(
        name: "Pizza",
        synonyms: ["Pie", "Za"]
    )
}

In this case, we are saying that PizzaEntity can be represented as “Pizza”, “Pie” or “Za”