ios - How to create a singleton class in swift? -


this question has answer here:

i need create singleton class in swift. can me code? know singleton classes helpful in creating generic code.

class singleton  {    static let sharedinstance = singleton() } 

Comments

Popular posts from this blog

php - Hide output during test execution -

javascript - Migrate custom AngularJS filter from 1.2.28 to 1.4.x -

Update Magento products with multiple images -