Skip to content

Instantly share code, notes, and snippets.

@quintonpryce
Created July 18, 2019 19:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save quintonpryce/b44c015732934f8bc35a78a29cd6403a to your computer and use it in GitHub Desktop.
Save quintonpryce/b44c015732934f8bc35a78a29cd6403a to your computer and use it in GitHub Desktop.
Event Tracker Key
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