Can't display objective-c code samples

The following link should be displaying the objective-c versions of the code samples, but all I get are the Swift versions:


https://developer.apple.com/documentation/classkit/incorporating_classkit_into_an_educational_app?language=objc

Replies

Indeed, the samples are (nowadays) provided by default in Swift and don't necessarily support the API toggles used to swap between the API language.

The language in the narrative changes, for example

application:didFinishLaunchingWithOptions: becomes application(_:didFinishLaunchingWithOptions:) 
but the sample source doesn't change a bit.

We should provide both or prevent the toggle from teasing.

Radar filed 39672602 - API language toggle doesn't change inline sample source