init(named:duration:)
Creates an action of the given name from an action file with a new duration.
Declaration
init?(named name: String, duration: TimeInterval)Parameters
- name:
The name of the action.
- duration:
The duration of the action.
Return Value
A new action object.