-
Notifications
You must be signed in to change notification settings - Fork 1.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
UUID creation not working as described in the SyncUps Tutorial #3073
Comments
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
The text was updated successfully, but these errors were encountered: