Conforming all of TraktKit's models to Hashable both has no ill effects on its current functionality, and allows for one to use the model objects as identifiers, such as when using UICollectionViewDiffableDataSource.
This pull request adds Hashable to all Model structs, without modifying their functionality.
This pull request also contains a Package.swift file to support Swift Package Manager. I realize this is already covered in open PR #35, but with that PR being fairly stale (and tbh, my personal needs in my own project), I've added that here too.
Conforming all of TraktKit's models to Hashable both has no ill effects on its current functionality, and allows for one to use the model objects as identifiers, such as when using
UICollectionViewDiffableDataSource
.This pull request adds
Hashable
to all Model structs, without modifying their functionality.This pull request also contains a
Package.swift
file to support Swift Package Manager. I realize this is already covered in open PR #35, but with that PR being fairly stale (and tbh, my personal needs in my own project), I've added that here too.