---
title: init()
framework: foundation
role: symbol
role_heading: Initializer
path: foundation/nsarray/init()
---

# init()

Initializes a newly allocated array.

## Declaration

```swift
init()
```

## Return Value

Return Value An array.

## Discussion

Discussion After an immutable array has been initialized in this way, it cannot be modified. This method is a designated initializer.

## See Also

### Initializing an Array

- [init(array:)](foundation/nsarray/init(array:)-o72h.md)
- [init(array:copyItems:)](foundation/nsarray/init(array:copyitems:).md)
- [init(contentsOfFile:)](foundation/nsarray/init(contentsoffile:).md)
- [init(objects:count:)](foundation/nsarray/init(objects:count:)-5odxv.md)
