One Logo Pool Ball
SwiftUICore · IOS API REFERENCE

EveryMinuteTimelineSchedule

struct · iOS 15.0+ · SDK 27.1

struct EveryMinuteTimelineSchedule

A schedule for updating a timeline view at the start of every minute. You can also use ``TimelineSchedule/everyMinute`` to construct this schedule.

Members (2)

method · iOS 15.0+

entries

TypeScript
entries(startDate: globalThis.Date, mode: TimelineScheduleMode): EveryMinuteTimelineSchedule_Entries
Swift declaration
func entries(from startDate: Date, mode: TimelineScheduleMode) -> EveryMinuteTimelineSchedule.Entries

Provides a sequence of per-minute dates starting from a given date. A ``TimelineView`` that you create with an every minute schedule calls this method to ask the schedule when to update its content. The method returns a sequence of per-minute dates in increasing order, from earliest to latest, that represents when the timeline view updates. For a `startDate` that's exactly minute-aligned, the schedule's sequence of dates starts at that time. Otherwise, it starts at the beginning of the specified minute. For example, for start dates of both `10:09:32` and `10:09:00`, the first entry in the sequence is `10:09:00`. - Parameters: - startDate: The date from which the sequence begins. - mode: The mode for the update schedule. - Returns: A sequence of per-minute dates in ascending order.

init · iOS 15.0+

init

TypeScript
static init(): EveryMinuteTimelineSchedule
Swift declaration
init()

Creates a per-minute update schedule. Use the ``EveryMinuteTimelineSchedule/entries(from:mode:)`` method to get the sequence of dates.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUICore types →