Post

Replies

Boosts

Views

Activity

Reply to WidgetKit configuration display name?
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
Sep ’20