I'd like to have my table view's data save and load from disk whenever the user leaves and reenters the app. I tried conforming to the NSCoding protocol as detailed here, but then got a compiler error saying that non-class types cannot conform to class protocol 'NSCoding'. Any guidance would be appreciated.
How do you persist a Swift struct to disk?
Add a Comment