IdentifiableState
@available(*, deprecated, message: "Use Identifiable instead.")
public protocol IdentifiableState : Decodable, Encodable, Equatable, Identifiable where Self.ID : Decodable, Self.ID : Encodable
A type of state that can be identified for tracking purposes.
This is typically used for entities stored in your state that might be accessed by id
or displayed in a List
view.
-
hashValue
Extension methodThe hash value of the state based on the id.
Declaration
Swift
@inlinable public var hashValue: Int { get }
Parameters
hasher
The hasher to apply the hash into.
-
hash(into:
Extension method) Applies the hash of the id to the hasher.
Declaration
Swift
@inlinable public func hash(into hasher: inout Hasher)
Parameters
hasher
The hasher to apply the id’s hash into.