Posts

Post not yet marked as solved
1 Replies
143 Views
TipKit stores all Event donations including their Date locally. I am wondering if it's still good practise to have an Event for a action that happens a lot of times in my app (the main feature), since Power-Users could get over a million triggers of this event. This would result into millions of entries, but I only need a rule counting if the count is higher then 3. Would it be smarter to think of a different approach for this use-case to save storage (and maybe query speed), or is it still advised to use Events for something like this?
Posted
by seemayr.
Last updated
.
Post not yet marked as solved
0 Replies
389 Views
Imagine a SwiftUI View having an @ObservedObject var someObject that can update anytime in the background (for example via network connection) and showing a NavigationLink based on some condition of it: if someObject.someCondition { NavigationLink(destination: { DetailView() }, label: { ... }) } If you now tapped the NavigationLink, DetailView will be pushed on the current NavigationView. Now if afterwards someCondition would change to false, DetailView would be popped off again, since the Link to the View would not exist anymore: This was always the behaviour of NavigationViews with .navigationViewStyle(.stack) set since I use them. navigationViewStyle is deprecated now, but by using NavigationStack I don't get this behaviour anymore. The DetailView would stay on the Stack, even if the NavigationLink would not exist anymore at all. Is there a way to reproduce this "old behavior" again?
Posted
by seemayr.
Last updated
.