Last active
August 28, 2017 18:43
-
-
Save polac24/f63d2720cda2333e352859b88430ca42 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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