TimelineSchedule
protocol · iOS 15.0+ · SDK 27.1
protocol TimelineScheduleA type that provides a sequence of dates for use as a schedule. Types that conform to this protocol implement a particular kind of schedule by defining an ``TimelineSchedule/entries(from:mode:)`` method that returns a sequence of dates. Use a timeline schedule type when you initialize a ``TimelineView``. For example, you can create a timeline view that updates every second, starting from some `startDate`, using a periodic schedule returned by ``TimelineSchedule/periodic(from:by:)``: TimelineView(.periodic(from: startDate, by: 1.0)) { context in // View content goes here. } You can also create custom timeline schedules. The timeline view updates its content according to the sequence of dates produced by the schedule.
Members (0)
This type has no directly callable members in this snapshot. See the framework’s skipped declarations for unsupported APIs.
Skipped declarations
3 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.
TimelineSchedule.periodic(from:by:)
Static protocol requirements cannot be called through an instance.
TimelineSchedule.everyMinute
Static protocol requirements cannot be called through an instance.
TimelineSchedule.explicit(_:)
Static protocol requirements cannot be called through an instance.