case let .extraAttributes(attributes):
self.extraAttributes = attributes
Instead of just assigning, we should merge the attributes so that any shared keys in the right-hand side overwrite those keys in the left-hand side.
Question: any way to un-set custom attributes in the left-hand side by passing something in the right-hand side? Or should we just assume that the developer will pass some sentinel value like NSNull()?
Instead of just assigning, we should merge the attributes so that any shared keys in the right-hand side overwrite those keys in the left-hand side.
Question: any way to un-set custom attributes in the left-hand side by passing something in the right-hand side? Or should we just assume that the developer will pass some sentinel value like
NSNull()
?