VGSFilePickerController
@MainActor
public class VGSFilePickerController
Controller responsible for importing files from device sources.
-
VGSFilePickerControllerDelegate- handle user interaction on file picking.Declaration
Swift
@MainActor public weak var delegate: VGSFilePickerControllerDelegate? { get set }
-
Initialization
Declaration
Swift
@MainActor public required init(configuration: VGSFilePickerConfiguration)Parameters
configuration
-
Present file picker view
Declaration
Swift
@MainActor public func presentFilePicker(on viewController: UIViewController, animated: Bool, completion: (() -> Void)? = nil)Parameters
viewControllerUIViewControllerthat will present card scanneranimatedpass
trueto animate the presentation; otherwise, passfalsecompletionthe block to execute after the presentation finishes
-
Dismiss file picker view
Declaration
Swift
@MainActor public func dismissFilePicker(animated: Bool, completion: (() -> Void)? = nil)Parameters
animatedpass
trueto animate the dismiss of presented viewcontroller; otherwise, passfalsecompletionthe block to execute after the dismiss finishes
View on GitHub