Skip to content

Instantly share code, notes, and snippets.

@apatronl
Created July 15, 2020 03:33
Show Gist options
  • Save apatronl/dec78694d8ca25f49b39a5da325a7bdf to your computer and use it in GitHub Desktop.
Save apatronl/dec78694d8ca25f49b39a5da325a7bdf to your computer and use it in GitHub Desktop.
// ...
@main
struct Emojibook_Widget: Widget {
private let kind: String = "Emojibook_Widget"
public var body: some WidgetConfiguration {
StaticConfiguration(
kind: kind,
provider: Provider(),
placeholder: PlaceholderView()
) { entry in
Emojibook_WidgetEntryView(entry: entry)
}
.configurationDisplayName("Random Emoji")
.description("Display a widget with an emoji that is updated randomly.")
.supportedFamilies([.systemSmall, .systemMedium, .systemLarge])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment