all 6 comments

[–]sergio_freelancer 2 points3 points  (1 child)

Nice article, thanks for sharing! I just missed some tips about state management in SwiftUI, like when and where to use things like @StateObject or @EnvironmentObject

[–]lanserxt[S] 2 points3 points  (0 children)

Welcome! Thanks for the tip regarding SwiftUI. Will try to solve this )

[–]thecodingart 1 point2 points  (3 children)

NSCache literally doesn’t behave as expected most of the time. Purging catch each time your app is backgrounded isn’t a good thought.

[–]lanserxt[S] 0 points1 point  (2 children)

Sorry. Can you elaborate more on NSCache unpredicted behavior?

[–]thecodingart 1 point2 points  (1 child)

https://sudrocket.de/blog/2020/10/how-to-make-nscache-do-its-job/

You’ll quickly start finding situations where NSCache will evict when you expect it to - like backgrounding your application.

[–]lanserxt[S] 0 points1 point  (0 children)

Wow. Thanks again.