---
title: actions
framework: quartzcore
role: symbol
role_heading: Instance Property
path: quartzcore/calayer/actions
---

# actions

A dictionary containing layer actions.

## Declaration

```swift
var actions: [String : any CAAction]? { get set }
```

## Discussion

Discussion The default value of this property is nil. You can use this dictionary to store custom actions for your layer. The contents of this dictionary searched as part of the standard implementation of the action(forKey:) method.

## See Also

### Getting the layer’s actions

- [action(forKey:)](quartzcore/calayer/action(forkey:).md)
- [defaultAction(forKey:)](quartzcore/calayer/defaultaction(forkey:).md)
