Tom Lieber's Microblog

Mar 19, 2022

@State var data: Result<DownloadedData, Error>?

nil when downloading, .success when downloaded, .failure if it failed.

The type looks weird, but it checks all the boxes?