---
title: "init(dictionary:)"
framework: foundation
role: symbol
role_heading: Initializer
path: "foundation/nsdictionary/init(dictionary:)-4gc13"
---

# init(dictionary:)

Initializes a newly allocated dictionary and adds to it objects from another given dictionary.

## Declaration

```swift
@objc(__swiftInitWithDictionary_NSDictionary:) dynamic convenience init(dictionary otherDictionary: NSDictionary)
```

## Return Value

Return Value An initialized dictionary–which might be different than the original receiver–containing the keys and values found in otherDictionary.
