Carrione / whats-new-in-swift-5-3

An Xcode playground that demonstrates the new features introduced in Swift 5.3.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

What’s new in Swift 5.3?

This is an Xcode playground that demonstrates the new features introduced in Swift 5.3:

  • Multi-pattern catch clauses
  • Multiple trailing closures
  • Synthesized Comparable conformance for enums
  • self is no longer required in many places
  • Type-Based Program Entry Points
  • where clauses on contextually generic declarations
  • Enum cases as protocol witnesses
  • Refined didSet Semantics
  • A new Float16 type
  • Swift Package Manager gains binary dependencies, resources, and more

This is designed to complement my existing article What’s New in Swift 5.3. You might also want to read What’s New in Swift 5.2 and What’s New in Swift 5.1. Alternatively, I have a whole website dedicated to tracking what's new in Swift – you should check it out at https://www.whatsnewinswift.com.

If you hit problems or have questions, you're welcome to tweet me @twostraws or email paul@hackingwithswift.com.

Screenshot of Xcode 11.5 running this playground.

About

An Xcode playground that demonstrates the new features introduced in Swift 5.3.


Languages

Language:Swift 100.0%