What’s new in Swift 5

In this brief, fast-moving, hands-on workshop we’ll look at the newest features added to Swift. Although we focus on Swift 5, we also spend some time on other additions from this past year (Swift 4.1 and 4.2 releases).

We’ll begin with an exploration of Swift 5’s new Result type. Next, it’s on to what’s new with Strings in Swift 5. We’ll look back at some of what you may and may not be doing with keypaths in Swift and then look at enhancements that have been added to support dynamic languages. Finally, we’ll play with some of the newly added APIs for working with sequences.

You’ll need a Mac with the Swift 5 toolset downloaded to run in the latest public release of Xcode.

Syllabus

* Explore the Swift 5 Result Type
– Motivation
– Definition
– map and flatMap
– Practical Examples

* Fun with Strings
– Swift 5 Raw Strings
– Swift 5 Custom String Interpolation

* Dynamic Callable
– Fun with Keypaths
– Swift 5 Dynamically Callable Types
– Dynamic member lookup

* Sequences
– Swift 5 Counting matching items in a sequence
– Iterating enums
– Using Swift 5’s compactMapValues and Swift 4.2’s compactMap

 

This tutorial has a different venue!

Pathé De Munt
Vijzelstraat 15, 1017 HD Amsterdam

Share

Session info:

Speaker: Daniel Steinberg

Storyteller at Dim Sum Thinking at Dim Sum Thinking

Date: 14 March 2019

Time: 13:30 - 17:00

Relevant tags:
iOS Swift

See all speakers

See all videos