Ios Swift Ui Execute Function Programmatically When View Disappears

Ios Swift Ui Execute Function Programmatically When View Disappears