You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+9-11Lines changed: 9 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -125,14 +125,14 @@ Open `Examples/Project.xcodeproj` and play around with it!
125
125
126
126
### Requirements
127
127
128
-
||Minimum Version|
129
-
|------:|--------------:|
130
-
|Swift |5.10, 6.0|
131
-
|Xcode |15.4, 16.1 |
132
-
|iOS |14.0 |
133
-
|macOS |11.0 |
134
-
|tvOS |14.0 |
135
-
|watchOS|7.0 |
128
+
||Minimum Version|
129
+
|------------:|--------------:|
130
+
|Language mode|5, 6|
131
+
|Xcode |16.1|
132
+
|iOS |14.0 |
133
+
|macOS |11.0 |
134
+
|tvOS |14.0 |
135
+
|watchOS|7.0 |
136
136
137
137
### Installation
138
138
@@ -519,11 +519,9 @@ struct MoviesView: View {
519
519
||Description|
520
520
|:----------|:----------|
521
521
|Summary |Provides an `AsyncPhase` value that represents a result of the given asynchronous throwable function.|
522
-
|Output |`AsyncPhase<T, E: Error>` (`AsyncPhase<T, any Error>` in Swift 5)|
522
+
|Output |`AsyncPhase<T, E: Error>`|
523
523
|Use Case |Throwing or non-throwing asynchronous operation e.g. API call|
524
524
525
-
Note:
526
-
The [typed throws](https://github.com/swiftlang/swift-evolution/blob/main/proposals/0413-typed-throws.md) feature introduced in Swift 6 allows the `Failure` type of the produced `AsyncPhase` to be specified as any type or even non-throwing, but in Swift 5 without it, the `Failure` type is always be `any Error`.
527
525
Here is a chart of the syntax in `typed throws` and the type of resulting `AsyncPhase`.
0 commit comments