Swift – 4 – Core Data – Part 3 Creating a Singleton Core Data & refactoring insert, update, delete operations

Hello guys  😀 . In part 2 we learned about basic core data concepts with insert, update and delete operations. Before starting unit testing for core data we have to loosely couple our code. It will eventually make our view controller class also Read More …

Swift – Core Data – Part 1 | Relationships | Delete Rules

What is core data? “Core Data is a object graph management and persistence Framework”. “Core Data is a framework that you use to manage the model layer objects in your application.It provides generalized and automated solutions to common tasks associated with object life cycle Read More …

Copying in Swift | Copy | Deep Copy (Pass By Value) | Shallow Copy (Pass By Reference) | Copy On Write | NSCopying Protocol | Copy With Zone

We will cover- Copy Deep Copy Shallow Copy Deep Copy Of Reference Types Copy On Write (COW) I am going to talk about copying objects in swift. Copying can be two ways — copy content and copy reference. Copy Content is also known as Deep Read More …

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 …