Country

open class Country : Codable

CountryKit**

  • CountryKit

    Country name.

    Declaration

    Swift

    public let name: String
  • iso

    CountryKit

    Country ISO code.

    Declaration

    Swift

    public let iso: String
  • CountryKit

    Country phone code.

    Declaration

    Swift

    public let phoneCode: Int?
  • CountryKit

    Country code.

    Declaration

    Swift

    public let countryCode: Int?
  • CountryKit

    Returns the country flag.

    Declaration

    Swift

    public lazy var flagImage: Image? { get set }
  • CountryKit

    Returns the country localized name in the user’s region settings (or an empty string).

    Declaration

    Swift

    public var localizedName: String { get }
  • CountryKit

    Returns the country’s flag emoji.

    Declaration

    Swift

    public var emoji: String { get }
  • CountryKit

    A textual representation of a Country instance.

    Declaration

    Swift

    public var description: String { get }