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
I need to implement Hashable protocol to one of my model classes. As I searched, Object protocol is already implement it. I have a string object which I use as a primary key. I use library called DeepDiff and It needs custom hash (If It is set by primary key, It is also okey).
When I try to implement below code, I get below error. Should I implement this method or Realm is handling hashing already?
Overriding declarations in extensions is not supported
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hello,
I need to implement Hashable protocol to one of my model classes. As I searched,
Object
protocol is already implement it. I have a string object which I use as a primary key. I use library calledDeepDiff
and It needs custom hash (If It is set by primary key, It is also okey).When I try to implement below code, I get below error. Should I implement this method or Realm is handling hashing already?
Beta Was this translation helpful? Give feedback.
All reactions