Can't get initial whatsNewCollection to show again #32

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

Originally created by @pkasson on 10/4/2023

What happened?

I have changed the version store to use user defaults and used that in the .environment call ... but the initial what's new that is created in the App class, never reappears.

.environment(\.whatsNew, .init(versionStore: userDefaultsWhatsNewVersionStore, whatsNewCollection: self))

Also tried to subclass the WhatsNewEnvironment ... but not clear how to pass in a new WhatsNew object, OR, at least then while testing, how to revert back to contents of an existing version to get the content to be correct before publishing.

Thanks !

What are the steps to reproduce?

Outlined above.

What is the expected behavior?

Should have the initial what's new content to reappear

*Originally created by @pkasson on 10/4/2023* ### What happened? I have changed the version store to use user defaults and used that in the .environment call ... but the initial what's new that is created in the App class, never reappears. `.environment(\.whatsNew, .init(versionStore: userDefaultsWhatsNewVersionStore, whatsNewCollection: self))` Also tried to subclass the WhatsNewEnvironment ... but not clear how to pass in a new WhatsNew object, OR, at least then while testing, how to revert back to contents of an existing version to get the content to be correct before publishing. Thanks ! ### What are the steps to reproduce? Outlined above. ### What is the expected behavior? Should have the initial what's new content to reappear
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#32
No description provided.