<!--
{
  "availability" : [
    "iOS: 2.0.0 -",
    "iPadOS: 2.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.5.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "QuartzCore",
  "identifier" : "/documentation/QuartzCore/CATransaction/setDisableActions(_:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(cs)CATransaction(cm)setDisableActions:"
  },
  "title" : "setDisableActions(_:)"
}
-->

# setDisableActions(_:)

Sets whether actions triggered as a result of property changes made within this transaction group are suppressed.

```
class func setDisableActions(_ flag: Bool)
```

## Parameters

`flag`

<doc://com.apple.documentation/documentation/Swift/true>, if actions should be disabled.

## Discussion

This is a convenience method that invokes [`setValue(_:forKey:)`](/documentation/QuartzCore/CATransaction/setValue(_:forKey:)) with an `NSNumber` containing a <doc://com.apple.documentation/documentation/Swift/true> for the  [`kCATransactionDisableActions`](/documentation/QuartzCore/kCATransactionDisableActions) key.

---

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)