Hi! Thank you very much for your answer.
That is working actually, the flow that you are describing above.
The problem occurs if the user DONT click on a second tab, but instead clicks directly on the Home tab to come back to the start screen again. Then the viewWillAppear does not do anything.
The steps that works are marked with an X:
X Launch app.
X App will initially show the Home tab.
X viewWillAppear is called in the Home tab, and loads the initial URL.
X User taps a link on that page, goes to a different URL.
-> This step is working, but not if the user wants to go directly to the start screen again (like a BACK function): User taps the second tab.
X The second tab's URL is loaded, etc.
X User tips the Home tab again.
X viewWillAppear is called, and loads the initial URL again.
So again, its kind of a BACK function I would like to simulate when the user clicks on "Home".
Hope this clears my question :)
Thanks!
Topic:
Programming Languages
SubTopic:
Swift
Tags: