SvenTiigi / WhatsNewKit

Showcase your awesome new app features 📱
https://sventiigi.github.io/WhatsNewKit/
MIT License
3.87k stars 190 forks source link

Simple example #77

Closed pkasson closed 7 months ago

pkasson commented 7 months ago

Is your feature request related to a problem?

Tried following the example and the documentation, to create a simple project that showed what's new on startup without all the extensions - seems elusive.

What solution would you like?

A simple example, that shows what's new on startup, for 1 or 2 version differences, without all the extensions

What alternatives have you considered?

Tried working the example ...

Any additional context?

No response

SvenTiigi commented 7 months ago

The process of implementing the automatic presentation mode of a WhatsNew screen can be found here

If you don't want to make use of the automatic presentation mode you can easily handle the version differences yourself and manually present a WhatsNew screen when needed.

pkasson commented 7 months ago

I think a bit of tinkering and reviewing the unit tests helped as well. Not to be critical, but while each section of your documents outlines that area well ... I still struggle ...

Example - I have things working with minimal code .. but now, want to test from v1.0.0 to v1.0.1, etc.

Your section shows:

let whatsNewVersionStore: WhatsNewVersionStore

// Save presented versions whatsNewVersionStore.save(presentedVersion: "1.0.0")

...

When I use this code, for either type of memory store, nothing appears:

` / */ func getUserDefaultsVersionStore() -> UserDefaultsWhatsNewVersionStore { let userDefaultsWhatsNewVersionStore = UserDefaultsWhatsNewVersionStore()

let version = WhatsNew.Version(major: 1, minor: 1, patch: 0)

userDefaultsWhatsNewVersionStore.save(presentedVersion: version)

return userDefaultsWhatsNewVersionStore }`