Skip to content

Commit 8a40e93

Browse files
authored
Fix BuildingSyncUps tutorial (#3099)
* Fix 05-PersistingSyncUps * Fix 07-SyncUpDetailNavigation * Fix 08-RecordMeeting
1 parent 9664c75 commit 8a40e93

File tree

38 files changed

+48
-46
lines changed

38 files changed

+48
-46
lines changed

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/05-PersistingSyncUps/PersistingSyncUps.tutorial

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@
9090
}
9191

9292
@Step {
93-
Go to SyncUpListsTests.swift and make a change to the `testAddSyncUp` test to make an
93+
Go to SyncUpsListTests.swift and make a change to the `testAddSyncUp` test to make an
9494
incorrect assertion.
9595

9696
@Code(name: "SyncUpsListTests.swift", file: PersistingSyncUps-02-code-0001.swift, previousFile: PersistingSyncUps-02-code-0001-previous.swift)

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/07-SyncUpDetailNavigation/SyncUpDetailNavigation-02-code-0006.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ struct AppView: View {
1919
} destination: { store in
2020
switch store.case {
2121
case let .detail(detailStore):
22-
SyncUpDetail(store: detailStore)
22+
SyncUpDetailView(store: detailStore)
2323
}
2424
}
2525
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/08-RecordMeeting/ImplementingTimer-01-code-0004.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct RecordMeeting {
3232
case .onAppear:
3333
return .run { send in
3434
while true {
35-
try await Task.sleep(for: seconds(1))
35+
try await Task.sleep(for: .seconds(1))
3636
}
3737
}
3838
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/08-RecordMeeting/ImplementingTimer-01-code-0005.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct RecordMeeting {
3333
case .onAppear:
3434
return .run { send in
3535
while true {
36-
try await Task.sleep(for: seconds(1))
36+
try await Task.sleep(for: .seconds(1))
3737
}
3838
}
3939
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/08-RecordMeeting/ImplementingTimer-01-code-0006.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct RecordMeeting {
3333
case .onAppear:
3434
return .run { send in
3535
while true {
36-
try await Task.sleep(for: seconds(1))
36+
try await Task.sleep(for: .seconds(1))
3737
await send(.timerTick)
3838
}
3939
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/08-RecordMeeting/ImplementingTimer-01-code-0007.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct RecordMeeting {
3333
case .onAppear:
3434
return .run { send in
3535
while true {
36-
try await Task.sleep(for: seconds(1))
36+
try await Task.sleep(for: .seconds(1))
3737
await send(.timerTick)
3838
}
3939
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/08-RecordMeeting/ImplementingTimer-01-code-0008.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct RecordMeeting {
3333
case .onAppear:
3434
return .run { send in
3535
while true {
36-
try await Task.sleep(for: seconds(1))
36+
try await Task.sleep(for: .seconds(1))
3737
await send(.timerTick)
3838
}
3939
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/08-RecordMeeting/ImplementingTimer-01-code-0009.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ struct RecordMeeting {
3333
case .onAppear:
3434
return .run { send in
3535
while true {
36-
try await Task.sleep(for: seconds(1))
36+
try await Task.sleep(for: .seconds(1))
3737
await send(.timerTick)
3838
}
3939
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/08-RecordMeeting/ImplementingTimer-01-code-0010.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct RecordMeeting {
3535
case .onAppear:
3636
return .run { send in
3737
while true {
38-
try await Task.sleep(for: seconds(1))
38+
try await Task.sleep(for: .seconds(1))
3939
await send(.timerTick)
4040
}
4141
}

Sources/ComposableArchitecture/Documentation.docc/Tutorials/BuildingSyncUps/08-RecordMeeting/ImplementingTimer-02-code-0001-previous.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ struct RecordMeeting {
3535
case .onAppear:
3636
return .run { send in
3737
while true {
38-
try await Task.sleep(for: seconds(1))
38+
try await Task.sleep(for: .seconds(1))
3939
await send(.timerTick)
4040
}
4141
}

0 commit comments

Comments
 (0)