Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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