Skip to content

Instantly share code, notes, and snippets.

@arthurpalves
Created June 25, 2020 12:13
Show Gist options
  • Select an option

  • Save arthurpalves/3d4054897532f7148748c802cd41cbe4 to your computer and use it in GitHub Desktop.

Select an option

Save arthurpalves/3d4054897532f7148748c802cd41cbe4 to your computer and use it in GitHub Desktop.
public func timeline(with context: Context, completion: @escaping (Timeline<Entry>) -> ()) {
var entries: [AccountEntry] = []
/* ... */
let timeline = Timeline(entries: entries, policy: .atEnd)
completion(timeline)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment