Hello all,
I have a SharePoint List (@Maps) where each item has a "Title" and "Attachments" field. The "Title" field just holds the name of the item (which is in this case, a room), while the "Attachments" field holds 1 PDF file per item.

Inside my PowerApp, I have a screen ('MapsScreen') that has the following code for the Gallery:

When you click on an item inside 'BrowseGallery2', the PDF opens in a different tab (here is the code for the item's OnSelect):

The problem is that even though the image successfully opens in a different tab, it takes a long time to load and our stakeholders would prefer the image pop-up within the app, not in a different tab. They'd like all functions be located within the app, and not externally.
I've tried different code inside the PDF Viewer to show an item's attachment (from the Gallery) when selected, but nothing seems to be working right now. I was confident the following code would do the trick but it's throwing this error. Would anybody be able to help? Thank you!
