Skip to content

[Office Hours] Mutability of Medication List #104

Discussion options

You must be logged in to vote

Hi @EthanRakutoBell,

Thank you for reaching out and asking this question!

Let's go through some of the elements step by step. Most of the elements that you are encountering are due to your usage (or rather not usage) of @Observable and the usage of Bindings. Some of these things can be challenging to get started, so let's go through them step-by-step.

It seems like you are mixing elements between the old way observation in Swift was handled and the new @Observable macro. We would encourage you to use @Observable, but a lot of examples are out there, and almost all LLMs still output stuff in the old syntax and mechanism. Here is a refresher on @Observable. The following WWDC video also pro…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@EthanRakutoBell
Comment options

EthanRakutoBell Jan 19, 2025
Collaborator Author

@PSchmiedmayer
Comment options

Answer selected by EthanRakutoBell
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants