Skip to content
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
@sindresorhus

Description

@sindresorhus

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:

Screenshot 2020-05-21 at 17 24 33

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    designFunctionality with a design componentquestionFurther information is requested

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions