SvenTiigi / WhatsNewKit

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

Prevent the WhatsNew Screen from appearing more than once #57

Closed DogandElk closed 2 years ago

DogandElk commented 2 years ago

WhatsNewKit Environment

What did you do?

I added the WhatsNew package and used the code for automatic and the WhatsNew Screen appeared as expected.

What did you expect to happen?

I expected the screen to only present once, but when the app was restarted it appeared again.

What happened instead?

Every time the app is restarted the whatsnew screen appears.

How do I get the whatsnew screen to appear only once, and not on subsequent restarts of the app until another new version of the app is released and the user updates the app from the App Store ? Thx

SvenTiigi commented 2 years ago

Hi @DogandElk,

could you please provide more information about the WhatsNewVersionStore you are using?

Please make sure to use a persistent variant of the WhatsNewVersionStore when initializing the environment such as UserDefaultsWhatsNewVersionStore

WhatsNewEnvironment(
    versionStore: UserDefaultsWhatsNewVersionStore(),
    ...
)
SvenTiigi commented 2 years ago

Closing due inactivity. Please feel free to re-open the issue at any time.

DogandElk commented 2 years ago

The version that you created for use in a storyboard and UIKIT life cycle is simple and it works just fine, but the version you have for use in swiftUI is so complicated and confusing that it's just not worth the effort to use. Plus you can't use it in a tabView otherwise it just pushes all the info on the screen to the bottom. Please make a version that works or create a youtube video that shows each and every step that needs to be followed in order to get it to work.

DogandElk commented 2 years ago

Perhaps show how to add a UIViewController to your SwiftUI app

DogandElk commented 1 year ago

Thanks for responding. There seems to be so much conflicting and unclear information on Cocoapods and the reader files that it’s very confusing. I am building an app in SwiftUI using Xcode 13.3.3 for IOS 15. Don’t you have a YouTube video on how to implement your package and code it properly. Otherwise it’s a mind numbing exercise in futility. I need directed information not an encyclopedia of every possible combination.

Sent from my iPhone

On May 19, 2022, at 8:36 AM, Sven Tiigi @.***> wrote:

 Hi @DogandElk,

could you please provide more information about the WhatsNewVersionStore you are using?

Please make sure to use a persistent variant of the WhatsNewVersionStore when initializing the environment such as UserDefaultsWhatsNewVersionStore

WhatsNewEnvironment( versionStore: UserDefaultsWhatsNewVersionStore(), ... ) — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you were mentioned.