init(from:by:)
Creates a periodic update schedule.
Declaration
init(from startDate: Date, by interval: TimeInterval)Parameters
- startDate:
The date on which to start the sequence.
- interval:
The time interval between successive sequence entries.
Discussion
Use the entries(from:mode:) method to get the sequence of dates.