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

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -