---
title: label
framework: metal
role: symbol
role_heading: Instance Property
path: metal/mtl4commandbuffer/label
---

# label

Assigns an optional label with this command buffer.

## Declaration

```swift
var label: String? { get set }
```
