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

# label

Provides an optional label to assign to the command encoder for debug purposes.

## Declaration

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