Airport
public struct Airport : Codable
extension Airport: Equatable
An airport identified by its three-letter IATA code
-
The three-letter IATA code
Declaration
Swift
public let iataCode: String
-
Initializes the airport
Declaration
Swift
public init(iataCode: String)
Parameters
iataCode
The three-letter IATA code for the airport
-
Test whether two airports are equivalent Parameters: - lhs: The first airport to compare - rhs: The second airport to compare
Declaration
Swift
public static func == (lhs: Airport, rhs: Airport) -> Bool