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