SwiftUI.js
Components

TimelineView

TimelineView re-renders its content on a fixed cadence, matching SwiftUI's scheduled-update mental model with a simple interval-based web adaptation.

TimelineView re-renders its content on a fixed cadence, matching SwiftUI's scheduled-update mental model with a simple interval-based web adaptation.

Examples

Examples

Preview unavailable for this example in the static docs build.

Show code
<TimelineView {...args}>
      {(date) => <output>{date.toLocaleTimeString()}</output>}
    </TimelineView>

API

PropTypeRequiredDescription
intervalnumberYesNo description yet.
children(date: Date) => ReactNodeYesNo description yet.

Inherits additional props from Omit<IBaseComponent, 'children'>.

TimelineView re-renders its content on a fixed cadence, matching SwiftUI's scheduled-update mental model with a simple interval-based web adaptation.

Status: adapted

SwiftUI Correspondence: Adapted from SwiftUI's TimelineView.

Notes

  • The current web implementation uses setInterval.
  • The child render function receives the latest Date for each tick.

On this page