marmelroy / FileBrowser

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

How to invoke init with parameters in objective-c? #41

Closed prscX closed 6 years ago

prscX commented 6 years ago

Hi @marmelroy

First of all I would like to appreciate for creating such a nice and cool library.

I am trying to invoke file browser from objective-c class. I am able to achieve this using below code:

FileBrowser *fileBrowser = [[FileBrowser alloc] init];

I want to pass parameters as well using below init method, but it is giving me below error:

Can you please guide me on how to init with parameters. Any help would be very much appreciated.

Thanks Pranav

prscX commented 6 years ago

Hi @marmelroy, I have got the solution basically @objc was not defined for this API, I will raise PR for the same.

Thanks Pranav