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

# init(name:iataCode:icaoCode:)

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

## Declaration

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

## Parameters

- `name`: The name of the airline.
- `iataCode`: The two-letter International Air Transport Association (IATA) code for the airline.
- `icaoCode`: The three-letter International Civil Aviation Organization (ICAO) code for the airline.

## Return Value

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