Bruno Lorenzo
Jan 23, 2024

--

Hi Jorge!

I don't think there's a clean way of doing that with TipKit. However, you could make a workaround.

1. Define a new Parameter rule

@Parameter

static var needToShowTip: Bool = false

2. Define a new UserDefault key. Something like `TipKitStartDate`.

3. When users install the updates and run the app, check if `TipKitStartDate` has any value.

3.a If it doesn't, store the current date.

3.b If a Date has been already stored, then check if it has passed a week. If it does, change the value needToShowTip to true.

4. You probably will need another variable in UserDefault to tell if you already showed the Tip (in this case, just ignore the logic from point 3).

Note: This is me thinking out loud, haha. Be aware that I didn't test this and might not work.

--

--

Bruno Lorenzo
Bruno Lorenzo

Written by Bruno Lorenzo

Software Engineer | Innovation Manager at www.houlak.com | Former iOS Tech Lead | I write about iOS, tech, and producitivy

Responses (1)