Instance Method インスタンスメソッド

entries(from:mode:)

Provides the sequence of dates with which you initialized the schedule.

Declaration 宣言

func entries(from startDate: Date, mode: TimelineScheduleMode) -> Entries

Return Value 戻り値

The sequence of dates that you provided at initialization.

Parameters パラメータ

startDate

The date from which the sequence begins. This particular implementation of the protocol method ignores the start date.

mode

The mode for the update schedule. This particular implementation of the protocol method ignores the mode.

Discussion 議論

A TimelineView that you create with a schedule calls this TimelineSchedule method to ask the schedule when to update its content. The explicit timeline schedule implementation of this method returns the unmodified sequence of dates that you provided when you created the schedule with explicit(_:). As a result, this particular implementation ignores the startDate and mode parameters.