Instance Method

run(forKey:object:arguments:)

Called to trigger the action specified by the identifier.

Required.

Declaration

func run(forKey event: String, object anObject: Any, arguments dict: [AnyHashable : Any]?)

Parameters

key

The identifier of the action. The identifier may be a key or key path relative to anObject, an arbitrary external action, or one of the action identifiers defined in CALayer.

anObject

The layer on which the action should occur.

dict

A dictionary containing parameters associated with this event. May be nil.

See Also

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