-
Notifications
You must be signed in to change notification settings - Fork 35
Provide Swift 3 examples #21
Comments
The |
Xcode 7.3 and above also respects the |
Played with this a bit over last weekend and it looks like we’re going to need to go with a separate tab for Swift 3. Internally to this project, keeping a single .swift and using Punting this until at least after the v3.3.0 release process is finished. |
This is a good time to start adding Swift 3 to all our examples. New projects are being written in either Swift 2.3 or Swift 3. The fewer known dependencies, the more likely a developer is going to go with Swift 3 right off the bat. If so, our examples will require them to do a lot of manual fixup, because the migrator only works on projects that started out in Swift 2.3 or earlier. We also need to build out some time to ensure that various repositories like /api-documentation and /help can cope with two versions of Swift being presented side-by-side. |
Xcode 8.2 (now in beta) will be the final release of Xcode to support Swift 2.3. If supporting two versions of Swift at once is proving to be difficult, we need to drop Swift 2.3 examples in favor of Swift 3 as soon as possible. |
This happened in #35. |
Now that Xcode 8 is in beta, we should provide Swift 3 examples or tailor the existing Swift examples to accommodate Swift 3 syntax using
#if swift(3)
. Here are the most obvious changes that’ll affect our examples:/cc @friedbunny @tmcw
The text was updated successfully, but these errors were encountered: