UserFile
enum UserFile: String
All files that can be selected by a user
-
The folder with songs
Declaration
Swift
case songsFolder
-
An export folder
Declaration
Swift
case exportFolder
-
A custom song template
Declaration
Swift
case customSongTemplate
-
A custom configuration for the ChordPro CLI
Declaration
Swift
case customChordProConfig
-
A custom configuration for the ChordPro CLI
Declaration
Swift
case customChordProLibrary
-
The ID of the file item
Declaration
Swift
var id: String
-
The
UTType
s of the fileDeclaration
Swift
var utTypes: [UTType]
-
The optional calculated label of the file
Declaration
Swift
var label: String?
-
The SF icon of the file
Declaration
Swift
var icon: String
-
The message for the file sheet
Declaration
Swift
var message: String
-
Get an optional bookmark URL
Declaration
Swift
var getBookmarkURL: URL?
Parameters
bookmark
The
UserFile
Return Value
An URL if found
-
Set an bookmark URL
Declaration
Swift
func setBookmarkURL( _ selectedURL: URL)
Parameters
selectedURL
The URL to set
-
Stop access to a persistent URL after some time
Note
Always call this function after you are done with the access or else Apple will be really upset!Declaration
Swift
func stopCustomFileAccess()