Showing posts with label swift. Show all posts
Showing posts with label swift. Show all posts

Friday, November 8, 2024

Singleton Design Pattern - Swift

Singleton design pattern is the go-to pattern when one requires to manage a single state accross the board. In Swift initializing a singleton is very easy. In this post I want to talk about some concepts the documentation doesn't explicitly describe.

Wednesday, February 24, 2016

Saving custom objects in NSUserDefaults - Swift

Following is how I implemented "remember me" feature in a recent app I did in swift. I'm saving the user details in NSUserDefaults upon requesting to remember.