Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🎉 Updated all sample code to adopt Swift 5 syntax and changes in the macOS 10.14 SDK #7

Open
wants to merge 7 commits into
base: master
Choose a base branch
from

Conversation

LumingYin
Copy link

@LumingYin LumingYin commented Mar 10, 2019

🎉 Updated all sample code to adopt Swift 5 syntax and changes in the macOS 10.14 SDK

All projects and Playgrounds (including intermediate project in each chapter's folder) are:

  • Migrated to Swift 5 syntax
  • Builds with no errors or warnings on the latest toolchain with the macOS 10.14 SDK
  • Behaves and runs correctly on macOS 10.14 as intended by the original author

Specific changes in ImageTiling:

  • Disables translatesAutoresizingMaskIntoConstraints, which are enabled by default on newer versions of macOS, so that scroll views have the correct content sizes

Specific changes in RaiseMan, CarLot and ZIPspector:

  • Add necessary explicit @objc annotation to remove reliance on deprecated inference rules
  • Explicitly call Swift.print() instead of print() to avoid runtime exceptions

Specific changes in RanchForecast and RanchForecastSplit:

  • Enabled NSAllowsArbitraryLoads under NSAppTransportSecurity so that the app would load data
  • Fixed WebViews so that they no longer default to zero-width when running on macOS 10.12 or above

@LumingYin LumingYin changed the title 🎉 Updated the sample code to adopt Swift 5 syntax and changes to the macOS 10.14 SDK 🎉 Updated all sample code to adopt Swift 5 syntax and changes in the macOS 10.14 SDK Mar 10, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant