Lifecycle

Life cycle methods in Swift UI
view-life-cycle-methods-in-swiftui

onAppear and onDisappear methods
HWS | how-to-respond-to-view-lifecycle-events-onappear-and-ondisappear