What is the correct design pattern for initializing SwiftUI view state from a function that can throw an exception?

Thanks @anon9791410 and @tera for the suggestion and examples.

I had started down that path before but based on this post thought it isn't an intended way to use a @State variable. Do you have any idea how stable this pattern is or if it is an intended usage of a @State property?