Skip to content

Instantly share code, notes, and snippets.

@arthurpalves
Created June 25, 2020 12:12
Show Gist options
  • Save arthurpalves/1993f908023a6d50a297efc01eed0cb0 to your computer and use it in GitHub Desktop.
Save arthurpalves/1993f908023a6d50a297efc01eed0cb0 to your computer and use it in GitHub Desktop.
struct Provider: TimelineProvider {
public typealias Entry = SimpleEntry
public func snapshot(with context: Context, completion: @escaping (SimpleEntry) -> ()) {
/* implementation */
}
public func timeline(with context: Context, completion: @escaping (Timeline<Entry>) -> ()) {
/* implementation */
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment