Skip to content

Equatable and Hashable

Swift synthesizes additional code for Equatable and Hashable types that is not visible to Periphery and can result in false positives for properties not directly referenced from non-synthesized code.

If your project contains many such types, you can retain all properties on Equatable types with --retain-equatable-properties, or all properties on Hashable types with --retain-hashable-properties. The Equatable option also retains properties on Hashable types because Hashable refines Equatable.