class Singleton {
static let sharedInstance = Singleton()
private init(){
}
}
init() を private にしておくのを忘れがちなので注意。
More than 5 years have passed since last update.
class Singleton {
static let sharedInstance = Singleton()
private init(){
}
}
init() を private にしておくのを忘れがちなので注意。
Register as a new user and use Qiita more conveniently