How do you programmatically show what's new #20

Closed
opened 2025-10-14 15:55:19 -06:00 by navan · 0 comments
Owner

Originally created by @pkasson on 4/6/2024

I was able to use the JSON to update the what's new for each new app version - works great !

What I wanted was a data driven (from an API call) to pull down what's new payload and use that instead of a static json file.

Having done that, and mapped the data to the WhatsNew model ... it appears a timing issue where the app gets this data from the API and store an .environment, but the what's new pop up never shows.

.environment(\.whatsNew, WhatsNewEnvironment(currentVersion :getCurrentVersion(version :utility.getWhatsNewVersion()), versionStore: (getVersionStore() == 0 ? getInMemoryVersionStore() : getUserDefaultsVersionStore()), whatsNewCollection: getCollection2()))

Due to the API being async, I am trying to have the whatsNewCollection force the popup, but it never appears.

How can you update the kit to process this payload from this async call and show the popup ? THANK YOU !

*Originally created by @pkasson on 4/6/2024* I was able to use the JSON to update the what's new for each new app version - works great ! What I wanted was a data driven (from an API call) to pull down what's new payload and use that instead of a static json file. Having done that, and mapped the data to the WhatsNew model ... it appears a timing issue where the app gets this data from the API and store an .environment, but the what's new pop up never shows. ` .environment(\.whatsNew, WhatsNewEnvironment(currentVersion :getCurrentVersion(version :utility.getWhatsNewVersion()), versionStore: (getVersionStore() == 0 ? getInMemoryVersionStore() : getUserDefaultsVersionStore()), whatsNewCollection: getCollection2())) ` Due to the API being async, I am trying to have the whatsNewCollection force the popup, but it never appears. How can you update the kit to process this payload from this async call and show the popup ? THANK YOU !
navan 2025-10-14 15:55:21 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github/WhatsNewKit#20
No description provided.