Xcode IDE Folding

I have a large project that can be compiled for macOS, iOS or tvOS
there are sections where whole funcs or classes are platform specific
there are sections where parts of a func is platform specific

so I have

#if os(xxx)

through out the code.

It would be nice to FOLD the code between a "#if" and "#endif"
but if that is possible I can not seem to find it?

Xcode only folds on braces "{}". Compiler directives do not fold. Would be an interesting enhancement request through Feedback Assistant (not bugs.swift.org since Xcode is an Apple-private application).

Terms of Service

Privacy Policy

Cookie Policy