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

Xcode 8 and modern Swift syntax #63

Closed
tylerjames opened this issue Sep 8, 2016 · 5 comments
Closed

Xcode 8 and modern Swift syntax #63

tylerjames opened this issue Sep 8, 2016 · 5 comments

Comments

@tylerjames
Copy link

The Xcode 8 GM build is out now and opening up a project with this library included will cause Xcode to prompt you to convert to either Swift 2.3 or Swift 3.0 (preferred) syntax. If you choose not to then your project will no longer build.

This library will need to be updated to modern syntax before it can be used with Xcode 8.

@kciter
Copy link
Owner

kciter commented Sep 10, 2016

Hello @tylerjames
KCFAB support to Swift 3.0 from version 2.0.0.

use_frameworks!
pod "KCFloatingActionButton", :git => 'https://github.com/kciter/KCFloatingActionButton.git', :tag => '2.0.0'
# Or
# pod "KCFloatingActionButton", :git => 'https://github.com/kciter/KCFloatingActionButton.git', :branch => 'swift3.0'

I can't pod trunk push... so, below doesn't work.

# pod "KCFloatingActionButton", "~> 2.0.0" 

@tylerjames
Copy link
Author

Thanks!
I tried updating it to 3.0 myself but Xcode kept complaining about the drawLayer code and I don't know Swift well enough to know what it was whining about.

@kciter
Copy link
Owner

kciter commented Sep 10, 2016

Is it solved? :)
Swift 3.0 had a lot of changes. I need to learn again. 😢

@tylerjames
Copy link
Author

tylerjames commented Sep 10, 2016

Sorry, I haven't tried running it yet. But if the 3.0 branch compiles on your end that's at least farther than I made it. Was pretty annoying to learn that Xcode 8 won't even compile Swift 2.2 code. The transition to 2.3 is much easier but only seems worth it in the short term.

For now I'm sticking with Xcode 7 because I also got annoyed that Xcode 8 ended plugin support and I'm not ready for that.

@kciter
Copy link
Owner

kciter commented Sep 10, 2016

Okay. 😄 But, if you want Swift 2.3 code. I'll make swift2.3 branch tomorrow.

@kciter kciter closed this as completed Sep 16, 2016
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