Swift 4.0 is released with several improvements and backward compatibility

Is Apple using the Swift language in iOS code?

Apple has been promoting Swift, a new company language that was presented at WWDC 2014 and recently had its code open. It is undeniable that it is quite popular among developers, but how can it be used internally?

Craig Federighi was recently interviewed by John Gruber and the chat was all about Swift. The boss of iOS and OS X spoke a little about the internal adoption of the language, saying that some groups prefer to use it in their projects, even though they know that Swift is still in the beginning of its life and that it still has a lot to evolve.

Swift

Because developer Ryan Olson decided to investigate the iOS 9.2 code to see what Apple used Swift on it. The verdict? Believe it or not, just the app Calculator already written in the new language.

During the session Platforms State of the Union, at WWDC 2014, Andreas Wendker (vice president of software engineering at Apple) said:

So, we are, as you can probably imagine, very, very excited about Swift. We think it will quickly become the programming language of choice for our own code, as well as for your apps.

() This afternoon we are updating the WWDC app, the app you are using to get around the conference here, with a version that uses Swift. So, this language is ready for you to use. real.

Olson skipped the WWDC app and found that only 6 of the 281 classes are written in Swift. The Apple Store app another one that uses the Swift language (for the app that runs on the Apple Watch). But basically this is what we have for Swift on iOS, at least until now we will have to see if iOS 10, which has everything to be presented at WWDC this year, has more news in this regard.

We did not do this article in order to detonate Swift. The benefits of using Apple's new language have already been widely discussed here on the website and the downside is also, after all, a language that has yet to mature. What is striking here is the speed with which Apple is adopting its own language on iOS (currently the company's main operating system, at least in number of users).

Obviously, it is not a simple matter to “turn the key” and make all of the company's developers / programmers / software engineers suddenly adopt Swift as a single language. But seeing that only the Calculator, WWDC and Apple Store apps use the language was a bit shocking.

Olson, however, made it clear that his research involved only iOS; in response to his post on Medium, many said that the OS X Dock, for example, already has a lot on Swift. It is quite possible that there is a lot on OS X, watchOS and tvOS written in Swift, but as I said, iOS is still the priority system today at Ma for what the iPhone represents for the company.

(via 9to5Mac)