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
assert(RealValue.self ==K.Value.self,"_AttributeValue raw value can only be retrieved with a key whose value matches the stored attribute value (stored type \(RealValue.self) does not match key value type \(K.Value.self))")
59
-
return_identityCast(value, to:K.Value.self)
57
+
// Dynamic cast instead of an identity cast to support bridging between attribute value types like NSColor/UIColor
58
+
guardlet value =self._rawValue as?K.Valueelse{
59
+
preconditionFailure("Unable to read \(K.self) attribute: stored value of type \(type(of:self._rawValue)) is not key's value type (\(K.Value.self))")
0 commit comments