22
33Learn what functionality is available in older language modes.
44
5- This book describes Swift 5.7 ,
5+ This book describes Swift 5.8 ,
66the default version of Swift that's included in Xcode 14.
77You can use Xcode 14 to build targets
8- that are written in either Swift 5.7 , Swift 4.2, or Swift 4.
8+ that are written in either Swift 5.8 , Swift 4.2, or Swift 4.
99
1010<!--
1111 - test: `swift-version`
1212
1313 ```swifttest
14- >> #if swift(>=5.7 .1)
14+ >> #if swift(>=5.8 .1)
1515 >> print("Too new")
16- >> #elseif swift(>=5.7 )
16+ >> #elseif swift(>=5.8 )
1717 >> print("Just right")
1818 >> #else
1919 >> print("Too old")
@@ -23,9 +23,9 @@ that are written in either Swift 5.7, Swift 4.2, or Swift 4.
2323-->
2424
2525When you use Xcode 14 to build Swift 4 and Swift 4.2 code,
26- most Swift 5.7 functionality is available.
26+ most Swift 5.8 functionality is available.
2727That said,
28- the following changes are available only to code that uses Swift 5.7 or later:
28+ the following changes are available only to code that uses Swift 5.8 or later:
2929
3030- Functions that return an opaque type require the Swift 5.1 runtime.
3131- The ` try? ` expression doesn't introduce an extra level of optionality
@@ -35,18 +35,18 @@ the following changes are available only to code that uses Swift 5.7 or later:
3535 For example, ` UInt64(0xffff_ffff_ffff_ffff) ` evaluates to the correct value
3636 rather than overflowing.
3737
38- Concurrency requires Swift 5.7 or later,
38+ Concurrency requires Swift 5.8 or later,
3939and a version of the Swift standard library
4040that provides the corresponding concurrency types.
4141On Apple platforms, set a deployment target
4242of at least iOS 13, macOS 10.15, tvOS 13, or watchOS 6.
4343
44- A target written in Swift 5.7 can depend on
44+ A target written in Swift 5.8 can depend on
4545a target that's written in Swift 4.2 or Swift 4,
4646and vice versa.
4747This means, if you have a large project
4848that's divided into multiple frameworks,
49- you can migrate your code from Swift 4 to Swift 5.7
49+ you can migrate your code from Swift 4 to Swift 5.8
5050one framework at a time.
5151
5252<!--
0 commit comments