AlternateNames

public struct AlternateNames
extension AlternateNames: Equatable, Hashable

A set of names for a single entity.

  • The entity’s primary name. For a Geoname, this is Geoname::name.

    Declaration

    Swift

    public var primary: String
  • The entity’s name in the language that was ingested according to the locale in the remote settings context. If none exists and this AlternateNames is for a Geoname, then this will be its primary name.

    Declaration

    Swift

    public var localized: String?
  • The entity’s abbreviation, if any.

    Declaration

    Swift

    public var abbreviation: String?
  • Declaration

    Swift

    public init(
        /**
         * The entity's primary name. For a `Geoname`, this is `Geoname::name`.
         */primary: String, 
        /**
         * The entity's name in the language that was ingested according to the
         * locale in the remote settings context. If none exists and this
         * `AlternateNames` is for a `Geoname`, then this will be its primary name.
         */localized: String?, 
        /**
         * The entity's abbreviation, if any.
         */abbreviation: String?)
  • Declaration

    Swift

    public static func == (lhs: AlternateNames, rhs: AlternateNames) -> Bool
  • Declaration

    Swift

    public func hash(into hasher: inout Hasher)