Swift is a new programming language for iOS, OS X, watchOS, and tvOS apps that builds on the best of C and Objective-C, without the C compatibility constraints.
Swift follows safe programming patterns and adds many modern features to make programming easier and more flexible. Swift’s clean slate, backed by the Cocoa and Cocoa Touch frameworks, is a great opportunity to re imagine how software development actually works. Swift has been years in the making.
Apple set the foundation for Swift by advancing our existing compiler, debugger, and framework infrastructure. They made memory management with Automatic Reference Counting (ARC) simpler. The framework stack is built on the solid base of Foundation and Cocoa and has been modernized and standardized throughout.
Objective-C itself has developed gradually to support blocks, collection literals, and modules, allowing framework adoption of modern language technologies without disruption. Due to this groundwork, we can now come up with a new language for the future of Apple software development. Swift looks familiar to Objective-C developers. It follows the readability of Objective-C’s named parameters and the power of Objective-C’s dynamic object model. It supplies seamless access to existing Cocoa frameworks and mix-and-match interoperability with Objective-C code.
Constructing from this common ground, Swift evolved many new features and unified the procedural and object-oriented portions of the language. Swift is friendly to new programmers. It is the first industrial-quality systems programming language that is as expressive as a scripting language. It supports playgrounds, an innovative feature that allows programmers to experiment with Swift code and see the results immediately, without the overhead of building and running an app.
Swift is the combination of the best in modern language thinking and wisdom from the wider Apple engineering culture. The compiler is thus optimized for performance, and the language is optimized for development, without compromising on either. It is designed to scale from “hello, world” application to an entire operating system. All this makes Swift a great future investment for developers and for Apple.
Thus, Swift is a fantastic way to write iOS, OS X, watchOS, and tvOS apps, and will continue to introduce with new features and capabilities.