HMSimilar is a protocol for comparing, in a more "relaxed" form than Equatable, two objects of same type.
Infix method for comparing 2 types for similarity.
static func ~=(lhs: Self, rhs: Self) -> Bool
(Self) One object to compare
(Self) Other object to compare
Similarity indicates the two values are "similar enough" to be considered equal in most scenarios. However, it doesn't guarantee them to be "equal".
import HMKit let objectOne: ObjectConformingToHMSimilar! let objectTwo: ObjectConformingToHMSimilar! let areSimilar: Bool = objectOne ~= objectTwo