Created
July 18, 2019 19:13
-
-
Save quintonpryce/b44c015732934f8bc35a78a29cd6403a to your computer and use it in GitHub Desktop.
Event Tracker Key
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
public class EventTrackerKey: Hashable { | |
public func hash(into hasher: inout Hasher) { | |
hasher.combine(self.name.hashValue) | |
} | |
public static func == (lhs: EventTrackerKey, rhs: EventTrackerKey) -> Bool { | |
return (lhs.name == rhs.name) | |
} | |
public let name: String | |
public init(_ name: String) { | |
self.name = name | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment