---
title: fileLabels
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsworkspace/filelabels
---

# fileLabels

The array of file labels, returned as strings.

## Declaration

```swift
var fileLabels: [String] { get }
```

## Return Value

Return Value An array of strings.

## Discussion

Discussion You can listen for notifications named didChangeFileLabelsNotification to be notified when file labels change. You can safely call this method from any thread of your app.

## See Also

### Finder File Labels

- [fileLabelColors](appkit/nsworkspace/filelabelcolors.md)
