HMSSection

EXTENSION

extension HMSSection: Hashable

Methods

hash(into:)

public func hash(into hasher: inout Hasher)

Use identifier to find a unique section object

  • Parameter hasher: the hasher object

Parameters

NameDescription
hasherthe hasher object

==(:)

public static func == (lhs: HMSSection, rhs: HMSSection) -> Bool

resolves comparing of 2 section objects by differentiating based on unique identifier

  • Parameters:
    • lhs: the first section to compare
    • rhs: the second section to compare
  • Returns: a Boolean stating whether compared section objects are same or different

Parameters

NameDescription
lhsthe first section to compare
rhsthe second section to compare