getTimeline(for:in:completion:) | Apple Developer Documentation

Provides an array of timeline entries for the current time and, optionally, any future times to update a widget.