Skip to content

Instantly share code, notes, and snippets.

@polac24
Last active August 28, 2017 18:43
Show Gist options
  • Save polac24/f63d2720cda2333e352859b88430ca42 to your computer and use it in GitHub Desktop.
Save polac24/f63d2720cda2333e352859b88430ca42 to your computer and use it in GitHub Desktop.
extension BestEnumRaw: Equatable{
static func ==(lhs: BestEnumRaw, rhs: BestEnumRaw) -> Bool {
if let lhsRaw = lhs.rawString { BestEnum.all.insert(lhsRaw)}
if let rhsRaw = rhs.rawString { BestEnum.all.insert(rhsRaw)}
return lhs.rawString == rhs.rawString
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment