SwiftyPlace Blog
SwiftUI View Lifecycle: When onAppear Actually fires
In simple setups — a view behind an if condition, a sheet, a fullscreen cover — onAppear works exactly how you’d expect. Show the view, onAppear fires. Remove it, onDisappear fires. State is gone. Clean and predictable. Then you use TabView. You put a data fetch in onAppear on your … Read more
