This repository was archived by the owner on Jun 1, 2023. It is now read-only.
This repository was archived by the owner on Jun 1, 2023. It is now read-only.
Show all or none conformances in the declaration #124
Open
Description
If a type has conformances defined both in the main type declaration and in extensions, swift-doc
only shows the ones defined directly in type in the docs declaration.
For example, this type conforms to Hashable
and Codable
directly in the type, but also conforms to many other things in extensions. However, in swift-docs
, it only shows:
Which feels a bit misleading, as it conforms to other types too, which are documented in the "Conforms To" section, but that can easily be missed and confuse users. I don't see why conformances directly on the type are more important than ones defined in extensions.
My recommendation is to either show all conformances or none in the declaration code block.