2 Comments
User's avatar
Walther Diechmann's avatar

not sure if I 'crossed the bridge properly' but wouldn't it perhaps be the easiest to like store a hash of the data - and then on the next load or whatever, redo the hash and if it doesn't match the hash sitting with the current (tabBar in question) then load a fresh data (set)? Rationale - a lot of different attributes could have changed and it would require quite a few "if's"

Expand full comment
Joe Masilotti's avatar

Totally! The "hardest" part of all of this is persisting the existing JSON to disk to use for the next load. The biggest unknown was if UIImage confirms to Equatable. That means you can use == on it to check if one image is the same as another. …if that's the case then we can do == on HotwireTab!

Expand full comment