---
title: ignoresAlpha
framework: appkit
role: symbol
role_heading: Type Property
path: appkit/nscolor/ignoresalpha
---

# ignoresAlpha

A Boolean value that indicates whether the app supports alpha.

## Declaration

```swift
@MainActor class var ignoresAlpha: Bool { get set }
```

## Return Value

Return Value true if the app doesn’t support alpha; otherwise, false.

## Discussion

Discussion The system consults this global value when the app imports alpha (for instance, through color dragging). By default this property is false; meaning the system supports the alpha component for colors globally. To ignore alpha for an app, invoke the setIgnoresAlpha method with a parameter of true. This value also determines whether the color panel has an opacity slider. This method provides a global approach for removing alpha, which might not always be appropriate. Apps that need to disable alpha can use more fine-grained APIs for individual controls, such as showsAlpha and supportsAlpha. In macOS 13 and earlier, the default value is true. This property is deprecated as of macOS 14.

## See Also

### Related Documentation

- [alphaComponent](appkit/nscolor/alphacomponent.md)

### Deprecated

- [colorSpaceName](appkit/nscolor/colorspacename.md)
- [usingColorSpaceName(_:)](appkit/nscolor/usingcolorspacename(_:).md)
- [usingColorSpaceName(_:device:)](appkit/nscolor/usingcolorspacename(_:device:).md)
- [currentControlTintDidChangeNotification](appkit/nscolor/currentcontroltintdidchangenotification.md)
