init(duration:)
Creates a duration event with the specified time duration.
Declaration
init(duration: TimeInterval)Parameters
- duration:
The duration before the event ends, specified in seconds.
Return Value
An initialized duration event.
Creates a duration event with the specified time duration.
init(duration: TimeInterval)The duration before the event ends, specified in seconds.
An initialized duration event.