Special Literals

Atsushi Yamamoto
iOS Swift Tips
Published in
1 min readMay 6, 2019

These literals’ values change depending on where you write them. They would be useful when you debug your code.

  • #file : The name of the file in which it appears.
  • #line : The line number on which it appears.
  • #column : The column number in which it begins.
  • #function : The name of the declaration in which it appears.

--

--