You can simply use hasher.combine and call it with the values you want to use for hashing:
func hash(into hasher: inout Hasher) {
hasher.combine(index)
hasher.combine(title)
}
You can simply use hasher.combine and call it with the values you want to use for hashing:
func hash(into hasher: inout Hasher) {
hasher.combine(index)
hasher.combine(title)
}