Country

public struct Country : Codable, Equatable

Struct representing a country.

  • The name of the country.

    Declaration

    Swift

    public var name: String
  • The code for the name of the country.

    Declaration

    Swift

    public var code: String
  • An array of states the country has.

    Declaration

    Swift

    public var states: [State]
  • Undocumented

    Declaration

    Swift

    public init(name: String, code: String, states: [State])
  • Struct representing a state of a country.

    See more

    Declaration

    Swift

    public struct State : Codable, Equatable
  • Declaration

    Swift

    public init(from decoder: Decoder) throws