Stop Xcode automatically generates Swift interfaces for Objective-C headers

Is it possible to stop Xcode (8) from auto-generating Swift UI when showing the Objective-C header? For example, by setting the default for the user.

In theory, its a very nice Xcode feature. Unfortunately, it doesn't work reliably. For me, it even seems to fail most of the time. Since I couldn't figure out why this is happening, I'd like to drop it until the Xcode / SourceKit errors were resolved.

+3


source to share


1 answer


The default behavior should depend on your project settings. If you are in a Swift project, it will want to show you the Swift interfaces. Also, if there is an Objective-C interface that Xcode generates Swift, then with Cmd + Alt + Enter you can see the Objective-C header "Counterpart" of Swift code for comparison.



0


source







All Articles