Created
May 29, 2021 19:42
-
-
Save iosdevie/fd8afb1880910ea12f3dc7b9f9da10b1 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
struct Movies: Hashable { | |
let identifier: UUID = UUID() | |
let name: String | |
func hash(into hasher: inout Hasher) { | |
return hasher.combine(identifier) | |
} | |
static func == (lhs: Movies, rhs: Movies) -> Bool { | |
return lhs.identifier == rhs.identifier | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment