No video

WWDC24: Migrate your app to Swift 6 | Apple

  Рет қаралды 9,757

Apple Developer

Apple Developer

Күн бұрын

Experience Swift 6 migration in action as we update an existing sample app. Learn how to migrate incrementally, module by module, and how the compiler helps you identify code that’s at risk of data races. Discover different techniques for ensuring clear isolation boundaries and eliminating concurrent access to shared mutable state.
Discuss this video on the Apple Developer Forums:
developer.appl...
Explore related documentation, sample code, and more:
Swift 6 Migration Guide: www.swift.org/...
Updating an app to use strict concurrency: developer.appl...
Swift concurrency: Update a sample app: developer.appl...
00:00 - Introduction
00:33 - The Coffee Tracker app
00:45 - Review the refactor from WWDC21
03:20 - Swift 6 and data-race safety
04:40 - Swift 6 migration in practice
07:26 - The strategy
08:53 - Adopting concurrency features
11:05 - Enabling complete checking in the watch extension
13:05 - Shared mutable state in global variables
17:04 - Shared mutable state in global instances and functions
19:29 - Delegate callbacks and concurrency
23:40 - Guaranteeing data-race safety with code you don’t maintain
25:51 - Enabling the Swift 6 language mode in the watch extension
26:35 - Moving on to CoffeeKit
27:24 - Enabling complete checking in CoffeeKit
27:47 - Common patterns and an incremental strategy
29:55 - Global variables in CoffeeKit
31:05 - Sending an array between actors
33:53 - What if you can’t mark something as Sendable?
35:23 - Enabling the Swift 6 language mode in CoffeeKit
35:59 - Adding a new feature with guaranteed data-race safety
40:43 - Wrap up and the Swift 6 migration guide
More Apple Developer resources:
Video sessions: apple.co/Video...
Documentation: apple.co/Devel...
Forums: apple.co/Devel...
App: apple.co/Devel...

Пікірлер
WWDC24: Enhance your UI animations and transitions | Apple
14:14
Apple Developer
Рет қаралды 4 М.
WWDC24: Capture HDR content with ScreenCaptureKit | Apple
11:29
Apple Developer
Рет қаралды 1 М.
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 10 МЛН
小丑和奶奶被吓到了#小丑#家庭#搞笑
00:15
家庭搞笑日记
Рет қаралды 9 МЛН
WWDC24: Consume noncopyable types in Swift | Apple
22:21
Apple Developer
Рет қаралды 3,3 М.
WWDC24: Xcode essentials | Apple
36:28
Apple Developer
Рет қаралды 11 М.
WWDC24: Say hello to the next generation of CarPlay design system | Apple
19:26
WWDC24: What’s new in Swift | Apple
30:24
Apple Developer
Рет қаралды 28 М.
WWDC24: Demystify SwiftUI containers | Apple
18:13
Apple Developer
Рет қаралды 7 М.
WWDC24: Meet Swift Testing | Apple
23:59
Apple Developer
Рет қаралды 11 М.
WWDC24: Explore Swift performance | Apple
34:36
Apple Developer
Рет қаралды 14 М.
WWDC24: SwiftUI essentials | Apple
24:16
Apple Developer
Рет қаралды 44 М.
WWDC24: Run, Break, Inspect: Explore effective debugging in LLDB | Apple
28:49
WWDC24: Train your machine learning and AI models on Apple GPUs | Apple
18:21
Son ❤️ #shorts by Leisi Show
00:41
Leisi Show
Рет қаралды 10 МЛН