HMSViewModel
EXTENSION
extension HMSViewModel: Hashable
Methods
hash(into:)
public func hash(into hasher: inout Hasher)
Use identifier
to find a unique view model object
- Parameter hasher: the hasher object
Parameters
Name | Description |
---|---|
hasher | the hasher object |
==(:)
public static func == (lhs: HMSViewModel, rhs: HMSViewModel) -> Bool
resolves comparing of 2 view model objects by differentiating based on unique identifier
- Parameters:
- lhs: the first view model to compare
- rhs: the second view model to compare
- Returns: a Boolean stating whether compared view model objects are same or different
Parameters
Name | Description |
---|---|
lhs | the first view model to compare |
rhs | the second view model to compare |