init(start:duration:)
Initializes a date interval with a given start date and duration.
Declaration
init(start startDate: Date, duration: TimeInterval)Parameters
- startDate:
The start date of the date interval.
- duration:
The duration from the start date for the date interval.
Discussion
This is the designated initializer.