Skip to content

Instantly share code, notes, and snippets.

@anupamchugh
Last active July 1, 2020 12:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anupamchugh/cfd2a58966d6cba3c42e8c9abf8ab311 to your computer and use it in GitHub Desktop.
Save anupamchugh/cfd2a58966d6cba3c42e8c9abf8ab311 to your computer and use it in GitHub Desktop.
struct JokesWidget: Widget {
private let kind: String = "JokesWidget"
public var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: JokeProvider(), placeholder: PlaceholderView()) { entry in
JokesWidgetEntryView(entry: entry)
}
.configurationDisplayName("Jokes Widget")
.description("This is a widget ")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment