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

NameDescription
hasherthe 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

NameDescription
lhsthe first view model to compare
rhsthe second view model to compare