Instance Property

actions

A dictionary containing layer actions.

Declaration

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

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

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.