Join Scott Gardner for an in-depth discussion in this video Convert a Master-Detail project to Swift 3, part of Swift 3 First Look.
- View Offline
- I've created a master detail project using Xcode 7.3.1…and Swift 2.2 and then opened that project…in Xcode 8 Beta 1.…And I was immediately presented with…the Convert to Current Swift Syntax dialog.…The standard, "Here's what we're going to do"…explanation follows.…And then I can choose to convert to 2.3,…that is, make little to no changes to my code…and postpone migrating to Swift 3,…or just go straight to Swift 3.…I'll go to 3, or else this would be a pretty short video.…I also need to confirm which targets I want to migrate.…
There's only one here, so I'll click next.…And after some crunching,…Xcode presents me with a preview of changes, side-by-side.…These first changes are to the appDelegate methods.…They're mostly to add an underscore…to first parameters,…so that they'll continue to be ignored at the call site,…for now anyway.…But then, towards the bottom,…I can see some of the grand renaming in action.…Here we see some of the redundancy removed…from UISplitViewController Delegate API.…I'll move over to the Master View Controller preview.…
Get your first look at Swift 3 in this course with Scott Gardner. Scott demonstrates changes made to the Swift Standard Library and Cocoa and Cocoa Touch APIs and reviews the Swift API Design Guidelines, identifying key principles and best practices that will help you optimize your Swift code. Also, check out the migration case studies in chapter 3, which show how to upgrade existing projects to Swift 3.