In xcode - how to easily switch editor view from "swift-like" generated header view to objective-c header

Xcode has a “useful feature” (in quotation marks because it does not help me) to generate a quick syntax representation of the objective-c headers.

When using shortcuts to open the .h file (cmd-shift-o then type Foo.h) - sometimes you get into the quick view of Foo.h, and sometimes into the objective-c view.

The vast majority of the time, I want the objective-c view - is there a way to quickly switch to it using keyboard shortcuts when Xcode unloads you in the quick version?

+8
objective-c xcode swift
source share
2 answers

As far as I know, if you are currently in the Swift file and open the header, you will see the header created by Swift. If you want to see the version of Objective-C, you can open the .m file first and then open the header file.

0
source share

As in Xcode 9 (perhaps earlier), you can choose an “analog” from the four square menus. One is marked as a quick view, one is an ObjC view.

enter image description here

0
source share

All Articles