Xcode is taking the class class responsible for that scene (which you set in the Identity inspector after selecting the scene’s view controller), finding the implementation of that class, and showing you that. If that class is implemented in Objective-C, that’s what you get.Xcode can’t automatically translate Objective-C to Swift, so if you want this class to be in Swift you will have to do something like this:create a replacement class with a slightly different namewrite a Swift version of the existing Objective-C codeuse the Identity inspector to change the class of the scene’s view controller to your new classoptionally, once everything is done, delete the old Objective-C class and rename the Swift class back to the original nameShare and Enjoy — Quinn The Eskimo! Apple Developer Relations, Developer Technical Support, Core OS/Hardware let myEmail = eskimo + 1 + @apple.com
Topic:
Programming Languages
SubTopic:
Swift
Tags: