Post

Replies

Boosts

Views

Activity

When does placeholder function get called?
Hello, I implemented getTimeline, getSnapshot and placeholder methods. While getTimeline, getSnapshot methods are getting called as expected, i don't see placeholder ever getting called ( my debug point never hits) Also, as per my understanding, placeholder is supposed to feed the UI when the data is not available. Since placeholder method never gets called, i see a black widget during transition(when data isn't ready) Is there a workaround? is anyone else experiencing the same?
0
0
386
Sep ’20
Customize widget description per family size
Hello, I am displaying different content per family and would like to know if there is a way to customize the description via static configuration StaticConfiguration(kind: kind, provider: Provider(), placeholder: PlaceholderView()) { entry in      WidgetEntryView(entry: entry)     }.configurationDisplayName("customize per family")     .description("customize per family")     .supportedFamilies([.systemSmall,.systemMedium, .systemLarge])
1
0
519
Aug ’20
Invalid Family in WidgetKit.getCurrentConfigurations
I tried adding small, medium widgets, and i see the family as invalid in the getCurrentConfigurations response. Can someone help me understand how i can get the family to be populated here. [0] WidgetInfo configuration INIntent? nil none family WidgetFamily <invalid> (0x0) kind String "SomeWidget" [1] WidgetInfo configuration INIntent? nil none family WidgetFamily <invalid> (0x1) kind String "SomeWidget"
0
0
413
Aug ’20