samedi 6 août 2016

Create singleton using swift language [duplicate]

This question already has an answer here:

Is this the best approach to create singleton using swift ?

class SingletonClass {
    static let sharedInstance = SingletonClass()
    private init() {

    }
}

Aucun commentaire:

Enregistrer un commentaire