Singleton

Singletons are useful when you want data in memory to persist throughout the lifetime of the application. Usually, it is better to pass around the relevant data to each of your controller for easier unit testing and debugging. But sometimes, you just need a singleton for realizing a very simple task.

Swift Sample Code

Other Sample Codes

You can find the list of sample code blog posts in this page: Sample Codes List

Happy Goals for iOS

Happy Goals for iOS

Want an app to help you track and achieve your goals, without the complex stuff, saving you from headaches? Checkout Happy Goals - Habits & Goals Tracker now in the App Store! Happy Goals has been featured in the App Store in over 32 countries. Start now, better late than never!

 

Thank you!

%d bloggers like this: