Question: what is nscoder in swift?
Answer: For those who came in late: Apple introduced the Codable protocol in Swift 4, which allows you to encode and decode your model types to data types such as JSON and property lists, and can be used instead of the NSCoding protocol to archive your data.