Hashable.hashValue has been deprecated. The replacement is hash(into:), which could be implemented as follows:
public func hash(into hasher: inout Hasher) {
hasher.combine(rawValue)
}
However, the standard library provides an implementation. From the documentation for RawRepresentable (to which UIControl.State conforms): "Available when Self conforms to Hashable and RawValue conforms to Hashable."
Hashable.hashValue
has been deprecated. The replacement ishash(into:)
, which could be implemented as follows:However, the standard library provides an implementation. From the documentation for
RawRepresentable
(to whichUIControl.State
conforms): "Available whenSelf
conforms toHashable
andRawValue
conforms toHashable
."