Closed Blejator90 closed 3 months ago
Hi @Blejator90, we should update the tutorial to be clearer, but the tagged discussion was just a side quest, and the rest of the tutorial assumes that we are not using tagged to keep things simple.
Hi @mbrandonw, that makes sense.
I noticed a similar issue in the tutorial for Editing and Deleting a Sync-Up, specifically in section 2 about deleting a sync-up. The tutorial instructs deleting the syncup inline and references an alternative (if it bothers the reader): sending a delegate action. Although step 13 does mention calling this delegate action, it's not illustrated in the examples. Subsequent sections also assume that the reader implemented the delegate action, which was not shown.
Description
Description
In the 'New sync-up form' section, step 5 from the Testing the Sync-Up Form tutorial, there's a discrepancy between the code in the tutorial and the example project regarding the
Attendee
object instantiation usingTagged
. EDIT: The same UUID creation discrepancy persists in subsequent sections.Issues:
Reducer section:
let attendee = Attendee(id: uuid())
which does not compile.let attendee = Attendee(id: Attendee.ID(uuid()))
, which compiles successfully.Test section:
let attendee = Attendee(id: Attendee.ID(0))
, resulting in a compilation error.let attendeeId = Attendee.ID(UUID(0))
, compiles without issues.Checklist
main
branch of this package.Expected behavior
The tutorial code should allow for the successful creation of an Attendee object using the provided syntax, ensuring consistency with the example project and compiling without errors.
Actual behavior
The code snippet from the tutorial let attendee = Attendee(id: uuid()) fails to compile. The tutorial's approach does not match the working example in the repository, which uses let attendee = Attendee(id: Attendee.ID(uuid())).
Steps to reproduce
No response
The Composable Architecture version information
1.10.3
Destination operating system
iOS 17.4
Xcode version information
Version 15.3 (15E204a)
Swift Compiler version information