Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Swift 5 compatible is needed #64

Open
kishore94 opened this issue Jan 13, 2020 · 4 comments
Open

Swift 5 compatible is needed #64

kishore94 opened this issue Jan 13, 2020 · 4 comments

Comments

@kishore94
Copy link

No description provided.

@lisional
Copy link

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

@machive
Copy link

machive commented Mar 30, 2020

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
Copy link

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
Copy link

rlegault33 commented Dec 5, 2020

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()
    }
 }

Repository owner deleted a comment Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants