Type Method

defaultAction(forKey:)

Returns the default action for the current class.

Declaration

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

Parameters

key

The identifier of the action.

Return Value

Returns a suitable action object for the given key or nil of no action object was associated with that key.

Discussion

Classes that want to provide default actions can override this method and use it to return those actions.

See Also

Getting the Layer’s Actions

func action(forKey: String) -> CAAction?

Returns the action object assigned to the specified key.

var actions: [String : CAAction]?

A dictionary containing layer actions.