---
title: width
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtlsize/width
---

# width

A value for the x-axis dimension.

## Declaration

```swift
var width: Int
```

## See Also

### Accessing a size’s dimensions

- [height](metal/mtlsize/height.md)
- [depth](metal/mtlsize/depth.md)
