#pragma mark in Swift?
Asked 07 September, 2021
Viewed 1.8K times
  • 55
Votes

In Objective C, I can use #pragma mark to mark sections of my code in the symbol navigator. Since this is a C preprocessor command, it's not available in Swift. Is there a stand-in for this in Swift, or do I have to use ugly comments?

20 Answer