mirror of
https://github.com/meshtastic/Meshtastic-Apple.git
synced 2026-04-20 22:13:56 +00:00
Show tips on app launch
This commit is contained in:
parent
46bf02c89c
commit
ebbe7c2dcc
1 changed files with 2 additions and 6 deletions
|
|
@ -38,6 +38,8 @@ struct MeshtasticAppleApp: App {
|
|||
|
||||
// Wire up router
|
||||
self.appDelegate.router = appState.router
|
||||
// Show Tips
|
||||
try? Tips.resetDatastore()
|
||||
}
|
||||
|
||||
var body: some Scene {
|
||||
|
|
@ -108,12 +110,6 @@ struct MeshtasticAppleApp: App {
|
|||
}
|
||||
})
|
||||
.task {
|
||||
#if DEBUG
|
||||
/// Optionally, call `Tips.resetDatastore()` before `Tips.configure()` to reset the state of all tips. This will allow tips to re-appear even after they have been dismissed by the user.
|
||||
/// This is for testing only, and should not be enabled in release builds.
|
||||
try? Tips.resetDatastore()
|
||||
#endif
|
||||
|
||||
try? Tips.configure(
|
||||
[
|
||||
// Reset which tips have been shown and what parameters have been tracked, useful during testing and for this sample project
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue