logo dotConferences
Menu

Supporting Objective-C in a Swift codebase

Guy Daher at dotSwift 2018

Objective-C and Swift are both widely used by developers. Apple went into a lot of effort to “bridge” those two languages. The problems arise when there is no equal notion in Objective-C for what you are trying to express in Swift. Guy showcases tips on ways to get around the unbridgeable features.

Slides

To see the slides, you can click here

More details

Objective-C has been the main programming language for Apple platforms since the release of iOS. However, Apple recently introduced Swift which is rising in popularity. Both have pros and cons, and the good news is that Apple went into a lot of effort to “bridge” Objective-C and Swift as seamlessly as possible.

The problems arise when the magic falls short. This happens when there is no equal notion in Objective-C for what you are trying to express in Swift. For example, optional value types and advanced enumerations are unbridgeable.

The goal of this talk is to showcase tips on ways to get around those unbridgeable features. In that way, you can ensure a seamless interoperability between Objective-C and Swift.