UserFileButton
struct UserFileButton: View
SwiftUI View with a button to select a file
Note
A file can be a normal file but also a folder-
The file to bookmark
Declaration
Swift
let userFile: UserFile -
The action when a file is selected
Declaration
Swift
let action: () -> Void -
The label of the button
Declaration
Swift
private var label: String? -
Present an import dialog
Declaration
Swift
private var presentImportDialog: Bool = false -
The body of the
ViewDeclaration
Swift
var body: some View
View on GitHub