-
Beta Was this translation helpful? Give feedback.
Answered by
mbrandonw
Mar 13, 2025
Replies: 1 comment 1 reply
-
Hi @zachwaugh, an alternative is the following: init() {
let sharedCount = Shared(value: 0)
_count = sharedCount
child = Child.State(count: sharedCount)
} |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
zachwaugh
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi @zachwaugh, an alternative is the following: