Skip to content
Discussion options

You must be logged in to vote

In that case you need the parent to pass the child the Shared state, and then the child can turn it into a SharedReader:

@SharedReader var name: String
init(name: Shared<String>) {
    _name = SharedReader(name)
}

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@jiledaa
Comment options

@mbrandonw
Comment options

Answer selected by jiledaa
@jiledaa
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants