Skip to content
Discussion options

You must be logged in to vote

We discussed this kind of thing in our "Modern SwiftUI" series, and had an episode where we talked about child-to-parent communication. Also, the app we build in that series is open source, so you can see the final product there.

The short of it is that delegate closures are probably the best way to facilitate the communication, but there are tricks you can employ to make it a little nicer than what you have above. There are more details in the episodes and the open source project.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by havilog
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