Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/SwiftDocOrg/Swift-Semantic-Icons

Icons used by swift-doc to represent Swift code symbols.
https://github.com/SwiftDocOrg/Swift-Semantic-Icons

cc-by-nc code-sense iconography swift xcode

Last synced: about 1 month ago
JSON representation

Icons used by swift-doc to represent Swift code symbols.

Awesome Lists containing this project

README

        

# Swift Semantic Icons


These icons are used by
swift-doc
to distinguish between different kinds of symbols in documentation.
They draw inspiration from Xcode's Symbol Navigator and Minimap
(also known as "Code Sense" icons),
making changes to better fit their use in swift-doc.


For example,
types in Xcode are typically represented with the same color
(purple),
distinguished only by their first letter
(C for classes, S for structures, and so on).
In swift-doc,
we assign distinct colors for classes, enumerations, protocols, and structures,
and apply them consistently throughout the site in icons
as well as links and symbol graphs.
Note, however, that
green is shared by top-level
functions, variables, and typealiases,
and that properties and cases are both teal,
as they're less likely to be displayed alongside one another.

Icon
Meaning


Associated Type


Class


Enumeration


Enumeration Case


Extension


Function


Method


Operator


Property


Protocol


Structure


Typealias


Variable

## License

[Creative Commons Attribution-NonCommercial 4.0 International][cc by-nc 4.0]
(CC BY-NC 4.0)

Xcode® is a trademark of Apple Inc.

## Contact

Mattt ([@mattt](https://twitter.com/mattt))

[cc by-nc 4.0]: https://creativecommons.org/licenses/by-nc/4.0/legalcode