Contents

init(name:iataCode:icaoCode:)

Creates a new airport object with the specified contents and attributes.

Declaration

init(name: String?, iataCode: String?, icaoCode: String?)

Parameters

  • name:

    The name of the airport.

  • iataCode:

    The three-letter International Air Transport Association (IATA) code for the airport.

  • icaoCode:

    The four-letter International Civil Aviation Organization (ICAO) code for the airport.

Return Value

A new airport object or nil if the initializer is unable to create the object.