class Singleton {
static let sharedInstance: Singleton = {
let instance = Singleton()
// 初期値設定
return instance
}()
}
final class Singleton {
static let sharedInstance = Singleton()
private init() {
}
}