Skip to content
This repository has been archived by the owner on Oct 17, 2021. It is now read-only.

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

License

Notifications You must be signed in to change notification settings

SwiftDocOrg/Swift-Semantic-Icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 

Repository files navigation

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)

Xcode® is a trademark of Apple Inc.

Contact

Mattt (@mattt)

Releases

No releases published

Packages

No packages published