When using Tips.showAllTipsForTesting() my tips are shown repeatedly again and again after ~2 seconds on 18.4 and 18.5. It is not happening on iOS 18.1 (only tested with simulator) Is this intended? It makes debugging very difficult.
Edit: Also, Tips.resetDatastore() does not seem to work as the documentation says?
Hey @mortengk, that is the intended behavior. showAllTipsForTesting
is designed to redisplay tips after they have been dismissed to allow for quick UI validation. Prior to 18.4 some popoverTips might not be redisplayed due to a state issue, but that was changed in 18.4.
We'll add some documentation to make this behavior more clear.
Are you getting an error when you run Tips.resetDatastore()
?
do {
try Tips.resetDatastore()
}
catch {
print("Datastore reset failed: \(error)")
}
From the resetDatastore() docs, it's important to call that function before calling Tips.configure()
.