Skip to content

Instantly share code, notes, and snippets.

@velotiotech
Created July 3, 2024 07:36
Show Gist options
  • Save velotiotech/7656723c77dccea91a1253baeb13fdb8 to your computer and use it in GitHub Desktop.
Save velotiotech/7656723c77dccea91a1253baeb13fdb8 to your computer and use it in GitHub Desktop.
struct MonthlyHolidayWidget: Widget {
let kind: String = "MonthlyHolidaysWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
MonthlyHolidayWidgetEntryView(entry: entry)
}
.configurationDisplayName("Monthly style widget") // Display name for the widget in the widget gallery
.description("The date of the widget changes based on holidays of month.") // Description of the widget's functionality
.supportedFamilies([.systemLarge]) // Specify the widget size supported (large in this case)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment