---
title: "init(integerLiteral:)"
framework: charts
role: symbol
role_heading: Initializer
path: "charts/markdimension/init(integerliteral:)"
---

# init(integerLiteral:)

Creates a constant width or height from an integer.

## Declaration

```swift
nonisolated init(integerLiteral value: Int)
```

## Parameters

- `value`: The width or height.
