class Singleton {
static let sharedInstance = Singleton()
init() {
print("init")
}
}
class Singleton {
static let sharedInstance:Singleton = {
let instance = Singleton()
// set up code
return instance
}()
}