When storing in an app group as explained by BrandonK212, https://developer.apple.com/forums/thread/716902?answerId=731691022#731691022, it seems like using a combination of Data(contentsOf:) with a file URL and UIImage(data:) worked for me, where UIImage(contentsOfFile:) did not.
Related thread that suggests Apple recommends the app group approach at least: https://developer.apple.com/forums/thread/715170
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: