Please agree to the following
Summary
The SwiftUI file importer doesn't allow to select folders in a Cryptomator vault
System Setup
- iOS: 18.0
- Cryptomator: 2.6.2
Cloud Type
iCloud Drive
Steps to Reproduce
- Run a SwiftUI app with the following content:
struct ContentView: View {
@State private var isPresentingUrlPicker = false
@State private var label = ""
var body: some View {
VStack {
Button("Open") {
isPresentingUrlPicker = true
}
Text(label)
}
.fileImporter(isPresented: $isPresentingUrlPicker, allowedContentTypes: [.folder, .data]) { result in
do {
let url = try result.get()
let _ = url.startAccessingSecurityScopedResource()
label = url.path
url.stopAccessingSecurityScopedResource()
} catch {
label = error.localizedDescription
}
}
}
}
- Tap on the Open button.
- Select a folder in a Cryptomator vault.
Expected Behavior
The Open button of the file importer should be enabled.
Actual Behavior
The Open button of the file importer is disabled.
Reproducibility
Always
Relevant Log Output
No response
Anything else?
I cannot reproduce the issue myself since I don't have Cryptomator for iOS. I became aware of this through a customer of my app which allows to select folders.
Please agree to the following
Summary
The SwiftUI file importer doesn't allow to select folders in a Cryptomator vault
System Setup
Cloud Type
iCloud Drive
Steps to Reproduce
Expected Behavior
The Open button of the file importer should be enabled.
Actual Behavior
The Open button of the file importer is disabled.
Reproducibility
Always
Relevant Log Output
No response
Anything else?
I cannot reproduce the issue myself since I don't have Cryptomator for iOS. I became aware of this through a customer of my app which allows to select folders.