Stop doing Sample Code in Swift while the syntax is changing

Number:rdar://30588620 Date Originated:2/17/2017
Status:Open Resolved:
Product:Developer Tools Product Version:Version 8.2 (8C38) & 10.12.3 (16D32)
Classification:Serious Bug Reproducible:Always
Apple has published a lot of sample code in Swift that no longer works because of syntax changes.

Code in WWDC videos no longer works, code in presentation slides no longer works, downloadable sample code no longer works.

One good example is the sample code for writing modern Cocoa apps on macOS:

This code can no longer be compiled on the latest version of macOS Sierra with the latest version of Xcode.


Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!