I'm sorry for what is probably a very stupid question, but I've been unable to find a solution for several days now.
I know a little about Python and it turned out to be very easy to implement on it.
So I have the path to the file. I need to know its horizontal resolution.
 Button(action: {
            print(selectedPath)
            let rpFilePicker: NSOpenPanel = NSOpenPanel()
            
            rpFilePicker.allowsMultipleSelection = false
            rpFilePicker.canChooseFiles = true
            rpFilePicker.canChooseDirectories = true
            
            rpFilePicker.runModal()
            selectedPath = rpFilePicker.url!.path
            
            let fm = FileManager.default
            do {
                let items = try fm.contentsOfDirectory(atPath: selectedPath)
                for item in items {
                    let slash = "/" // yes its stupid
                    let onePath = selectedPath + slash + item
                    print(onePath)
    
                }
            } catch {
                
            }
I would like some simple solution, without a ton of code, which frankly scares in Swift after Python...
Thanks!