I am not using Swift, so I don\'t need its documentation in Xcode. Currently it just messes with Objective C documentation.
Is it possible to disable Swift section of do
It is not possible, and the idea of making it possible would be an excellent enhancement request in a bug report to Apple.
The documentation is just a set of HTML files. If it's downloaded, you can edit a CSS file to completely hide Swift or Objective-C code.
/Users/XXX/Library/Developer/Shared/Documentation/DocSets/com.apple.adc.documentation.XXX.docset/Contents/Resources/Documents/
Switch to Finder, and use "Go" > "Go to Folder" menu to open up the folder.
Browse to Resources/XXXX/CSS
folder and edit "xcode5.css" file. You should add either of these blocks to hide Swift or Objective-C:
div .Swift {
display: none !important;
}
div .Objective-C {
display: none !important;
}
I highly recommend Dash to address this and several other weaknesses in the Xcode doc browser. The current Mac Store version doesn't handle it quite right yet, but when the current beta (2.2) is approved, it'll let you choose which languages to display just as you suggest.