FileSelectorView

1.0.0

A small Swift UI Package with one View to select a file
Nef10/FileSelectorView

What's New

1.0.0 First release

2020-07-13T19:09:44Z

FileSelectorView

CI Status Documentation percentage License: MIT Latest version platforms supported: macOS SPM compatible

A small Swift UI Package with one View to select a file.

Usage

Simple example:

    @State private var fileURL: URL?
    ...
    var body: some View {
        ...
        FileSelectorView(allowedFileTypes: ["txt", "md"], url: self.$fileURL)
        ...
    }

With a label in the body:

var body: some View {
    ...
     HStack(alignment: .firstTextBaseline) {
        Text("Text file:")
        FileSelectorView(allowedFileTypes: ["txt", "md"], url: self.$fileURL)
    }
    ...
}

You can check out the complete documentation here.

Include

The library supports the Swift Package Manger, so simply add it to the Swift Packages tab of your Xcode project.

Description

  • Swift Tools 5.2.0
View More Packages from this Author

Dependencies

  • None
Last updated: Sun Mar 17 2024 16:24:48 GMT-0900 (Hawaii-Aleutian Daylight Time)