O'Reilly logo

Mastering Swift 4 - Fourth Edition by Jon Hoffman

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

What is mix and match?

Mix and match allows us to create a project in either Objective-C or Swift and include code from either language. This feature is arguably one of the most important features that came out with Swift.

If you do not plan on using Objective-C and Swift together, you can skip this chapter. You can always come back to this chapter if, at a later time, you find you need to use the languages together.

The reason why this feature is so important is that there are over a million apps written in Objective-C in Apple's App Store, and it would not be feasible for developers to spend the resources required for converting all of these apps from Objective-C to Swift. Without mix and match, the adoption of the Swift language would ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required