<!--
{
  "availability" : [
    "macOS: 10.0.0 - 14.0.0"
  ],
  "documentType" : "symbol",
  "framework" : "AppKit",
  "identifier" : "/documentation/AppKit/NSColor/ignoresAlpha",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AppKit"
    ],
    "preciseIdentifier" : "c:objc(cs)NSColor(cpy)ignoresAlpha"
  },
  "title" : "ignoresAlpha"
}
-->

# ignoresAlpha

A Boolean value that indicates whether the app supports alpha.

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

## Return Value

<doc://com.apple.documentation/documentation/Swift/true> if the app doesn’t support alpha; otherwise, <doc://com.apple.documentation/documentation/Swift/false>.

## Discussion

The system consults this global value when the app imports alpha (for instance, through color dragging). By default this property is <doc://com.apple.documentation/documentation/Swift/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 <doc://com.apple.documentation/documentation/Swift/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`](/documentation/AppKit/NSColorPanel/showsAlpha) and [`supportsAlpha`](/documentation/AppKit/NSColorWell/supportsAlpha).

In macOS 13 and earlier, the default value is <doc://com.apple.documentation/documentation/Swift/true>. This property is deprecated as of macOS 14.

## See Also

[`alphaComponent`](/documentation/AppKit/NSColor/alphaComponent)

The alpha (opacity) component value of the color.



---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)