fileDialogURLEnabled(_:)
On macOS, configures the fileImporter or fileMover to conditionally disable presented URLs.
Declaration
nonisolated func fileDialogURLEnabled(_ predicate: Predicate<URL>) -> some View
Parameters
- predicate:
The predicate that evaluates the URLs presented to the user to conditionally disable them. The implementation is expected to have constant complexity and should not access the files contents or metadata. A common use case is inspecting the path or the file name.