Displaying UIDocumentInteractionController from SwiftUI view

I have a SwiftUI grid with a list of files, I am trying to display the file when one of the grid items is tapped.

I am currently attempting to use UIDocumentInteractionController, but having issues with it's delegate methods. Attempting something seen here: https://stackoverflow.com/a/60421084 but having issues.

Terms of Service

Privacy Policy

Cookie Policy