Skip to content

Instantly share code, notes, and snippets.

@pallavtrivedi03
Created September 7, 2020 04:37
Show Gist options
  • Save pallavtrivedi03/1300f9446e0ee346b3b3495c92a98163 to your computer and use it in GitHub Desktop.
Save pallavtrivedi03/1300f9446e0ee346b3b3495c92a98163 to your computer and use it in GitHub Desktop.
@main
struct BoxOfficeWidget: Widget {
let kind: String = "BoxOfficeWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
BoxOfficeWidgetEntryView(entry: entry)
}
.configurationDisplayName("Box Office")
.description("Box office collection of latest movies")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment