I leave you an example of how I use it in my app. With this you can have different titles and descriptions for each widget.
struct MyPempisSmallRegularPaymentWidget: Widget {
let kind: String = "MyPempisSmallRegularPaymentWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
MyPempisRegularPaymentsWidgetEntryView(entry: entry)
}
.configurationDisplayName("Regular Payments")
.description("Quick glance at your Regular Payment Global Amount")
.supportedFamilies([.systemSmall])
}
}
struct MyPempisMediumWidget: Widget {
let kind: String = "MyPempisMediumWidget"
var body: some WidgetConfiguration {
StaticConfiguration(kind: kind, provider: Provider()) { entry in
MyPempisWidgetEntryViewMedium(entry: entry)
}
.configurationDisplayName("Compact Overview")
.description("Quick glance at your Global Amount, Your Last Transaction Added & The Global Amount of your Regular Payments")
.supportedFamilies([.systemMedium])
}
}
@main
struct MyPempisWidgets: WidgetBundle {
@WidgetBundleBuilder
var body: some Widget {
MyPempisSmallWidget()
MyPempisSmallRegularPaymentWidget()
MyPempisMediumWidget()
}
}
More info -> https://developer.apple.com/documentation/swiftui/widgetbundle
Post
Replies
Boosts
Views
Activity
You just have to add the background color and apply the blur to it.