<!--
{
  "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/CAAction/run(forKey:object:arguments:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Core Animation"
    ],
    "preciseIdentifier" : "c:objc(pl)CAAction(im)runActionForKey:object:arguments:"
  },
  "title" : "run(forKey:object:arguments:)"
}
-->

# run(forKey:object:arguments:)

Called to trigger the action specified by the identifier.

```
func run(forKey event: String, object anObject: Any, arguments dict: [AnyHashable : Any]?)
```

## Parameters

`event`

The identifier of the action. The identifier may be a key or key path relative to `anObject`, an arbitrary external action, or one of the action identifiers defined in [`CALayer`](/documentation/QuartzCore/CALayer).

`anObject`

The layer on which the action should occur.

`dict`

A dictionary containing parameters associated with this event. May be `nil`.

## See Also

  [Core Animation Programming Guide](https://developer.apple.com/library/archive/documentation/Cocoa/Conceptual/CoreAnimation_guide/Introduction/Introduction.html#//apple_ref/doc/uid/TP40004514)



---

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)