Some more context:
The first time I encountered this endless loop was in this scenario:
App launches and brings up default tab which I call my starting view. I found that when I switched to another tab but then went back to my first tab my .onAppear for the starting view would get called endlessly.
I “fixed” this by switching the .onAppear to .task instead BUT .task ended up being called twice in this same scenario. Still not ideal but better than endless.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: