Skip to content

Instantly share code, notes, and snippets.

@apatronl
Created July 12, 2020 18:15
Show Gist options
  • Save apatronl/ca10c14927178f287fe5739cf13800db to your computer and use it in GitHub Desktop.
Save apatronl/ca10c14927178f287fe5739cf13800db 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])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment