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.

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