Contents

directoryURL

The initial directory that the document picker displays.

Declaration

var directoryURL: URL? { get set }

Mentioned in

Discussion

Set this property to specify the starting directory for the document picker. This property defaults to nil. If you specify a value, the document picker tries to start at the specified directory. Otherwise, it starts with the last directory chosen by the user.

The directoryURL property only returns a value when you explicitly set it. For example, it doesn’t calculate the default URL presented to the user when the property isn’t set.

See Also

Getting the user-selected document