xcode - #pragma mark in Swift? -


in objective c, can use #pragma mark mark sections of code in symbol navigator. since c preprocessor command, it's not available in swift. there stand-in in swift, or have use ugly comments?

you can use // mark:


historical, prior xcode 6 beta 4

just talked engineer here @ wwdc, , current beta of xcode doesn't implement

// mark:

style yet, i'm told future versions will.

it suggested making liberal use of class extensions might better practice anyway. since extensions can implement protocols, can e.g. put of table view delegate methods in extension , group code @ more semantic level #pragma mark capable of.


Comments

Popular posts from this blog

commonjs - How to write a typescript definition file for a node module that exports a function? -

openid - Okta: Failed to get authorization code through API call -

thorough guide for profiling racket code -