skip to Main Content

How to archive data in swift? – Ios swift

I am trying to archive data and want to store it in userdefault but app getting crash. Also tried this let encodedData = try NSKeyedArchiver.archivedData(withRootObject: selectedPoductDetails, requiringSecureCoding: false) selectedPoductDetails is dict of type [String: SelectedProductDetail] import Foundation class SelectedProductDetail {…

VIEW QUESTION
Back To Top
Search