-
-
Notifications
You must be signed in to change notification settings - Fork 35
Open
Description
Please agree to the following
- I have searched existing issues for duplicates
- I agree to follow this project's Code of Conduct
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.
Metadata
Metadata
Assignees
Labels
No labels