You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@propertyWrapperstructUserDefault<T>{letkey:StringletdefaultValue:T// ✅ Userdefaults 로 값을 찾을 때 없다면, defaultValue 를 반환.// 그렇기 때문에 wrappedValue 는 옵셔널이 아님.varwrappedValue:T{get{returnUserDefaults.standard.object(forKey: key)as?T?? defaultValue
}set{UserDefaults.standard.set(newValue, forKey: key)}}}enumGlobalSettings{@UserDefault(key:"FOO_FEATURE_ENABLED", defaultValue: false)staticvarisFooFeatureEnabled:Bool@UserDefault<Bool>(key:"BAR_FEATURE_ENABLED", defaultValue: false)staticvarisBarFeatureEnabled}
프로퍼티 래퍼 공부 후 다시금 리펙토링을 목표로 함
Originally posted by @hyun99999 in #628 (comment)
The text was updated successfully, but these errors were encountered: