---
title: "init(name:iataCode:icaoCode:)"
framework: intents
role: symbol
role_heading: Initializer
path: "intents/inairport/init(name:iatacode:icaocode:)"
---

# init(name:iataCode:icaoCode:)

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

## Declaration

```swift
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

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