WWDC19

Table of Contents

=================

Introducing Combine and Advances in Foundation - Thursday

Session materials: https://developer.apple.com/videos/play/wwdc2019/711/

Foundation Updates

Ordered Collection Diffing

let diff = bird.difference(from: bear)
let newBird = bear.applying(diff) // [b, i, r, d]

Data

Contiguity

Compression

let compressed = try data.compressed(using: BUILT_IN_COMPRESSION_ALGORITHM_ENUMS)

Units

Displaying a Date or Time

List Formatter

let listFormatter = ListFormatter()
let dateFormatter = dateFormatter()

listFormatter.itemFormatter = dateFormatter
let string = listFormatter.string(from: dates)

Operation Queue

queue.addBarrierBlock {
  save()
}

Progress Reporting

let queue = OperationQueue()
queue.progressCount = SomeNumber

Swift Updates

Scanner

FileHandle

Introducing Combine -> The replacement for Rx!

Publisher

Subscriber

Operator