What Does a Swift Data Type of “L” Stand For?

后端 未结 1 1951
挽巷
挽巷 2021-02-05 20:42

Within a prepareForSegue() function, I declared a constant as a ViewController type. When I access this constant, a value type with the character \"L\" appears next

相关标签:
1条回答
  • 2021-02-05 21:33

    This is the symbol for a local variable.

    You can see the differences in a playground:

    Based on filenames alone, the other symbols are:

    B — binding
    T — builtin type, typedef
    — category
    C — class, or class template
    CE — class extension
    M — method, method template, instance method, member
    V — class variable, global variable, instance variable
    K — const, enum constant
    E — enum
    F — field
    ƒ — function, function template
    A — IBAction method
    O — IBOutlet, IBOutletCollection
    # — macro
    C (brown) — modeled class
    M (brown) — modeled method
    P (brown) — modeled property
    N — namespace
    x — parameter
    P — property
    Pr — protocol
    S — struct
    U — union

    0 讨论(0)
提交回复
热议问题