SettingsValue
@propertyWrapper
class SettingsValue<T> : Encodable where T : Encodable
Wraps settings properties, making them thread-safe. All access to the internalValue should be done through the wrapper because of the thread-safety thing.
-
Declaration
Swift
fileprivate var internalValue: T
-
Declaration
Swift
var wrappedValue: T { get set }
-
Declaration
Swift
init(wrappedValue: T)
-
Declaration
Swift
func encode(to encoder: Encoder) throws