marmelroy / FileBrowser

Finder-style iOS file browser written in Swift
MIT License
1.51k stars 220 forks source link

Swift 5 compatible is needed #64

Open kishore94 opened 4 years ago

lisional commented 4 years ago

Hi, we have a fork with Swift 5.0 support if you still need it: https://github.com/Nuglif/FileBrowser/tree/master

machive commented 4 years ago

Is this going to be available as a Pod? I need the "@objc" added to the init method in FileBrowser so I can use this from Objective C. The 1.0.0 version does not have this change but the Swift 5 fork does.

lisional commented 4 years ago

It's always available in your Podfile by using pod 'FileBrowser', git: 'https://github.com/Nuglif/FileBrowser'

You can also specify a specific commit you want. And if you want something merged, open a PR on our fork!

rlegault33 commented 3 years ago

Here is a view representable for SwiftUI usage

import SwiftUI
import UIKit
import FileBrowser

struct FileListViewControllerRepresentable: UIViewControllerRepresentable {
    typealias UIViewControllerType = FileBrowser

    func makeUIViewController(context: UIViewControllerRepresentableContext<FileListViewControllerRepresentable>) -> FileBrowser {
        return FileBrowser()
    }

    func updateUIViewController(_ uiViewController: FileBrowser, context: UIViewControllerRepresentableContext<FileListViewControllerRepresentable>) {
    } 
}  

struct fileBrowswerRepresentable_Previews: PreviewProvider {
    static var previews: some View {
        FileListViewControllerRepresentable()
    }
 }