the.bay.news

Default implementation of Hashable for AnyObject

Swift Forums
Default implementation of Hashable for AnyObject
Hello friends, I'd like to pitch a very small, but IMHO a very useful change when it comes to conforming AnyObjects to Hashable. Motivation Nowadays it is common to conform classes to Hashable when building SwiftUI apps, so that they can be used as elements inside navigation paths. This is generally done either by always implementing the conformance, or by creating a separate protocol and providing the implementation there (much more common). This pattern is so common that it found its way to ...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.