fileDialogMessage

On macOS, configures the fileExporter, fileImporter, or fileMover with a custom message that is presented to the user, similar to a title.

View ModifieriOS 17.0+macOS 14.0+

Overloads

2 ways to call compose().fileDialogMessage(). Each is one SwiftUI overload, picked by the arguments you pass.

React
compose().fileDialogMessage(messageResource: string)
Swift
@export(implementation) nonisolated func fileDialogMessage(
    _ messageResource: LocalizedStringResource
) -> some View
2 more Swift overloads share this form
Swift
nonisolated func fileDialogMessage(
    _ messageKey: LocalizedStringKey
) -> some View
Swift
nonisolated func fileDialogMessage<S>(
    _ message: S
) -> some View
where S : StringProtocol

Parameters

  • messageResource*string

    The localized string resource to display.

See also

More in Presentation.