Skip to main content
Journey Uncommon Logo
JourneyUncommon
mediumSwiftproperty wrappersSingle-choice MCQ

What does `wrappedValue`'s `nonmutating set` accessor enable for a property wrapper used on a `let`-bound struct context?

@propertyWrapper struct Ref<T> { private let box: NSMutableArray var wrappedValue: T { get { box[0] as! T } nonmutating set { box[0] = newValue } } }