defaultAction(forKey:)
Returns the default action for the current class.
Declaration
class func defaultAction(forKey event: String) -> (any CAAction)?Parameters
- event:
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.