7

See the S, Pr, T, L on the left side of the images - what do these initials signify? Kindly include answers for icons I have not mentioned here as well.

Image 1

enter image description here

Image 2

enter image description here

I only know that C represents class and S represents Struct.

Glorfindel
  • 21,988
  • 13
  • 81
  • 109
mfaani
  • 33,269
  • 19
  • 164
  • 293

2 Answers2

10

Protocol
Struct
Class
function
Value / Variable
Type
Local value / variable

luk2302
  • 55,258
  • 23
  • 97
  • 137
1

As you've already surmised:

  • C: class
  • S: struct

Some others:

  • Pr: Protocol
  • Ex: extension (found in the symbol navigator, but not code completion)
  • T: Type (generic type constraint, protocol associated type, etc)
  • L: let constant / immutable property
  • V: var variable / mutable property
  • P: property (IIRC Xcode favors L/V for Swift, but you see P for ObjC properties)

(Not 100% sure of the last three, and I'm on the phone so I can't check. Will follow up later to verify those and add some more...)

rickster
  • 124,678
  • 26
  • 272
  • 326