Created
July 3, 2024 07:36
-
-
Save velotiotech/7656723c77dccea91a1253baeb13fdb8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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