FileDialog

public class FileDialog : Dialog

Base class for the OpenDialog and SaveDialog, use one of those subclasses.

  • If true, this means that the dialog was canceled, otherwise, you can pick the various properties to pick the selection.

    Declaration

    Swift

    public var canceled: Bool
  • Initializes the FileDialog

    Declaration

    Swift

    public init(title: String = "", prompt: String = "", nameFieldLabel: String = "", message: String = "")

    Parameters

    title

    Title for the dialog

    prompt

    Prompt to show to the user

    nameFieldLabel

    The name field label

    message

    Message to the display to the user

  • Gets or sets the directory path for this panel

    Declaration

    Swift

    public var directoryPath: String { get set }
  • The File path that is currently shown on the panel

    Declaration

    Swift

    public var filePath: String { get set }