---
title: "init(intValue:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/codingkey/init(intvalue:)"
---

# init(intValue:)

Creates a new instance from the specified integer.

## Declaration

```swift
init?(intValue: Int)
```

## Parameters

- `intValue`: The integer value of the desired key.

## Discussion

Discussion If the value passed as intValue does not correspond to any instance of this type, the result is nil.
