Swift – NSCoder | Codable | JSONDecoder | JSONEncoder | NSKeyedArchiver | NSKeyedUnarchiver | Serialize | Deserialize | Marshelling | Demarshelling | Parse JSON | Parse Plist

Source code : CodableExample.playground 2 Codable and NSKeyedArchiverBlog-master We can persist data by using NSCoder or Codable protocols and use NSKeyedArchiver to persist/save and NSKeyedUnarchiver to fetch data to and from user document directory respectively. Note: We have NSCoder (support still available Read More …