We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 720f8cb commit 4189dabCopy full SHA for 4189dab
Sources/FilePicker/FilePicker.swift
@@ -83,7 +83,7 @@ public struct FilePicker<LabelView: View>: View {
83
if presented == true {
84
let panel = NSOpenPanel()
85
panel.allowsMultipleSelection = allowMultiple
86
- panel.canChooseDirectories = false
+ panel.canChooseDirectories = types.contains(.directory) // should be able to choose directories it the type is included
87
panel.canChooseFiles = true
88
panel.allowedFileTypes = types.map { $0.identifier }
89
panel.begin { reponse in
0 commit comments