2
2
3
3
Learn what functionality is available in older language modes.
4
4
5
- This book describes Swift 5.9.2 ,
5
+ This book describes Swift 5.10 ,
6
6
the default version of Swift that's included in Xcode 15.1.
7
7
You can use Xcode 15.1 to build targets
8
- that are written in either 5.9.2 , Swift 4.2, or Swift 4.
8
+ that are written in either 5.10 , Swift 4.2, or Swift 4.
9
9
10
10
<!--
11
11
- test: `swift-version`
@@ -23,9 +23,9 @@ that are written in either 5.9.2, Swift 4.2, or Swift 4.
23
23
-->
24
24
25
25
When you use Xcode 15.1 to build Swift 4 and Swift 4.2 code,
26
- most Swift 5.9.2 functionality is available.
26
+ most Swift 5.10 functionality is available.
27
27
That said,
28
- the following changes are available only to code that uses 5.9.2 or later:
28
+ the following changes are available only to code that uses 5.10 or later:
29
29
30
30
- Functions that return an opaque type require the Swift 5.1 runtime.
31
31
- 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 5.9.2 or later:
35
35
For example, ` UInt64(0xffff_ffff_ffff_ffff) ` evaluates to the correct value
36
36
rather than overflowing.
37
37
38
- Concurrency requires 5.9.2 or later,
38
+ Concurrency requires 5.10 or later,
39
39
and a version of the Swift standard library
40
40
that provides the corresponding concurrency types.
41
41
On Apple platforms, set a deployment target
42
42
of at least iOS 13, macOS 10.15, tvOS 13, or watchOS 6.
43
43
44
- A target written in 5.9.2 can depend on
44
+ A target written in 5.10 can depend on
45
45
a target that's written in Swift 4.2 or Swift 4,
46
46
and vice versa.
47
47
This means, if you have a large project
48
48
that's divided into multiple frameworks,
49
- you can migrate your code from Swift 4 to 5.9.2
49
+ you can migrate your code from Swift 4 to 5.10
50
50
one framework at a time.
51
51
52
52
> Beta Software:
0 commit comments