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 3 error #90

Closed
Maryom opened this issue Sep 14, 2016 · 3 comments
Closed

Swift 3 error #90

Maryom opened this issue Sep 14, 2016 · 3 comments

Comments

@Maryom
Copy link

Maryom commented Sep 14, 2016

Hi,

I migrated to Swift 3 and I got the following error in BTConfiguration.swift:
Cannot invoke initializer for type 'CGFloat' with an argument list of type '(CGFloat!)'

screen shot 2016-09-14 at 2 40 46 pm

I tried to solve it but all my tries didn't work.

Any help?

Thanks.

@Maryom
Copy link
Author

Maryom commented Sep 14, 2016

I solved it by replace it with the following line:
return self.configuration.cellHeight as NSNumber!

It's ok? I think I should PR for it to save other people time, right?

@Maryom Maryom mentioned this issue Sep 14, 2016
@PhamBaTho
Copy link
Owner

PhamBaTho commented Sep 15, 2016

@Maryom I fixed this issue in Swift-3.0 branch.

From now, you can use these lines of code in your Podfile:

pod 'BTNavigationDropdownMenu', :git => 'https://github.com/PhamBaTho/BTNavigationDropdownMenu.git', :branch => 'swift-3.0'

@Maryom
Copy link
Author

Maryom commented Sep 15, 2016

Thanks! Just a small note: I think it should be :branch => 'swift-3.0' not :branch => 'swift-2.3'

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

2 participants