Swiftpack.co -  msalmonse/FilePicker as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
Wrapper for UIDocumentPickerViewController
.package(url: "https://github.com/msalmonse/FilePicker.git", from: "0.2.1")


Wrapper for UIDocumentPickerViewController

Updated for iOS 14, currently works though not well.

My testbed ContentView:

struct ContentView: View {
    var state = FilePickerState().showFileExtensions(true)
    var path = "Not Set"
    var showPicker = false
    var multi = false

    var body: some View {
        VStack {
            Button("Pick file") {
                self.showPicker = true
            .sheet(isPresented: self.$showPicker) {
                FilePickerView(state, showToggles: true)
            Text("Path: \(path)")
                .onReceive(state.urlPublisher, perform: { self.path = $0.path })


Stars: 2
Last commit: 21 hours ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Related Packages

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API