---
title: fileLabelColors
framework: appkit
role: symbol
role_heading: Instance Property
path: appkit/nsworkspace/filelabelcolors
---

# fileLabelColors

The array of colors for the file labels.

## Declaration

```swift
var fileLabelColors: [NSColor] { get }
```

## Return Value

Return Value An array of NSColor objects.

## Discussion

Discussion This array has the same number of elements as fileLabels, and the color at a given index corresponds to the label at the same index. You can listen for notifications named didChangeFileLabelsNotification to be notified when file labels change that may result in changes to the order of the fileLabelColors. You can safely call this method from any thread of your app.

## See Also

### Finder File Labels

- [fileLabels](appkit/nsworkspace/filelabels.md)
