Instance Property


A dictionary containing layer actions.


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


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

func action(forKey: String) -> CAAction?

Returns the action object assigned to the specified key.

class func defaultAction(forKey: String) -> CAAction?

Returns the default action for the current class.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software