Skip to content

Instantly share code, notes, and snippets.

@intan1907
Created June 16, 2021 06:01
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 intan1907/85510579de72b0c1aa635d4f10df9c8d to your computer and use it in GitHub Desktop.
Save intan1907/85510579de72b0c1aa635d4f10df9c8d to your computer and use it in GitHub Desktop.
New StaticConfiguration for HeartyRecipeWidget
@main
struct HeartyRecipeWidget: Widget {
let kind: String = "HeartyRecipeWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
HeartyRecipeWidgetEntryView(entry: entry)
}
.configurationDisplayName("Hearty Recipe Widget")
.description("Display a widget with a random recipe that is updated every 1 hour.")
.supportedFamilies([.systemSmall])
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment