Data Caching With NSCache
A real case scenario for optimising data usage in SwiftUI apps
Published in
4 min readJun 16, 2021
I recently open-sourced my HackerNews reader for macOS that is entirely written in SwiftUI for macOS. Analysing my scenario can help to explain data caching and data waste avoidance.
If you want to get a more detailed idea of the code, you can follow along in the project’s GitHub repository.