How can I revert the wkwebview's history to its previous state upon restarting the app?

I want the wkwebview to revert to its previous state when I restart it.

Can you elaborate on what you mean by previous state?

How can I revert the wkwebview's history to its previous state upon restarting the app?
 
 
Q