Michael Long
1 min readDec 28, 2019

--

In the new sequence the view is instantiated, then load is called onAppear. That loads the data into our array, which is presented.

Now go back to the previous screen and click on the link again. Our view is presented and again load is called onAppear.

The problem is that our array still contains our old, stale data and that stale data will be presented until our load function returns new data.

--

--

Michael Long
Michael Long

Written by Michael Long

I write about Apple, Swift, and SwiftUI in particular, and technology in general. I'm also a Lead iOS Engineer at InRhythm, a modern digital consulting firm.

Responses (1)