---
title: "init(dictionaryLiteral:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/expressiblebydictionaryliteral/init(dictionaryliteral:)"
---

# init(dictionaryLiteral:)

Creates an instance initialized with the given key-value pairs.

## Declaration

```swift
init(dictionaryLiteral elements: (Self.Key, Self.Value)...)
```
