Skip to content
Discussion options

You must be logged in to vote

It's worth calling out that Apple does have some clear guidance on this.

Like with most guidance from Apple in SwiftUI, I would take this with a grain of salt. There is nothing fundamentally wrong with doing this. Even the codability works just fine. You will simply encode the bare essentials of the model (such as the ID of the item you are viewing). All other state gets generated once the view appears and the model is interacted with.

Replies: 2 comments 4 replies

Comment options

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

@mbrandonw
Comment options

Comment options

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

@mbrandonw
Comment options

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