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

Update to Swift 5.0 #140

Open
BigDada1 opened this issue Mar 26, 2019 · 2 comments
Open

Update to Swift 5.0 #140

BigDada1 opened this issue Mar 26, 2019 · 2 comments

Comments

@BigDada1
Copy link

After updating my app to Swift 5, I've got some (new) compiler warnings

  • KYDrawerController.swift:378:36: 'drawerController(_:stateChanged:)' is deprecated: renamed to 'drawerController(_:didChangeState:)' (see Buildtime Warning: Swift Compiler Warning #124)
  • KYDrawerController.swift:208:23: Expression implicitly coerced from 'UIView?' to 'Any' (new)
  • KYDrawerController.swift:219:23: Expression implicitly coerced from 'UIView?' to 'Any' (new)
@filipealva
Copy link

I know that it's still going to need to update to Swift 5.0 soon, but if you're stuck with these errors you can fix by adding this script at the end of your Podfile:

post_install do |installer|
    installer.pods_project.targets.each do |target|
        if target.name == 'KYDrawerController'
            target.build_configurations.each do |config|
                config.build_settings['SWIFT_VERSION'] = '4.2'
            end
        end
    end
end

@BigDada1
Copy link
Author

Yes, this Podfile script kills the Expression implicitly coerced warnings. But on the other side, there appears the Conversion to Swift 5 is available issue in the issue navigator – and #124 still remains in both variants.

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