I'm down a rabbit hole on a project that interests me, but has gotten out of hand.
In medical imaging, there is a nose-bleeding-mind-numbing format called DICOM.
I'm trying to read a DICOMDIR file, which doesn't have an extension. I believe it is a data type of some demonic kind, the details of which to me are reading like VCR instructions for the time being.
The parsing of this file is a topic for a later time.
My question for now is how can I simply locate the bloody file!
I've tried:
let urlPath = Bundle.main.url(forResource: "DICOMDIR", withExtension: "")
let urlPath = Bundle.main.url(forResource: "DICOMDIR", withExtension: nil)
let stringPath = Bundle.main.path(forResource: "DICOMDIR", ofType: "")
let stringPath = Bundle.main.path(forResource: "DICOMDIR", ofType: nil)
I'm simply trying to output the path to the Image Text field on the starter template.
I have pulled the DICOMDIR file into the folder in Xcode, so I can see it in the project. I have a "photo.png" file in the same location, and can get the path to display.
Any thoughts? Thanks for reading.