marmelroy / FileBrowser

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

use of unresolved identifier 'present' #21

Closed uknowmeright closed 8 years ago

uknowmeright commented 8 years ago

I am getting "use of unresolved identifier 'present'" error when i copy the code verbatim from the example:

let fileBrowser = FileBrowser()
present(file, animated: true, completion: nil)

Am I doing something wrong? I am also importing the library at top of file and have run pod install

marmelroy commented 8 years ago

Thanks @uknowmeright. Indeed, there was a typo there. Fixed with https://github.com/marmelroy/FileBrowser/commit/dbf76445598777e74aa77414f975634dfa375190

uknowmeright commented 7 years ago

It is still giving me the "use of unresolved identifier 'present'". As if the function does not exist at all. Any Ideas?

uknowmeright commented 7 years ago

I am using swift 2.3 on XCode 8 btw and pulling in version 0.1.4

marmelroy commented 7 years ago

FileBrowser 0.1.4 is no longer supported.

the present function was called presentViewController in Swift 2.3

uknowmeright commented 7 years ago

Ah, my bad. Didn't realize you had already updated to Swift 3.0. Thanks for the quick response!