How to create a Swift URL object from Data (byte array) without writing the bytes to disk?

Background:

I need to use a file viewer (such as QuickLook) to view secure files in my iOS (Swift) application but I do not want to write the files to disk. I know Apple does disk encryption but that is not an option for us. Is there any way to use a file viewer (such as QuickLook) with a file that is purely in memory?

Related posts

Recent Viewed