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 support #21

Closed
nalogowiec opened this issue Oct 17, 2016 · 2 comments
Closed

Swift 3 support #21

nalogowiec opened this issue Oct 17, 2016 · 2 comments

Comments

@nalogowiec
Copy link

Hey, great work with the slider! I used it without any problems with Swift 2.2, but then I migrated to Swift 3 and now I have some small problems, it does not compile because of those lines:

override func layoutSublayersOfLayer(_ layer: CALayer) {
super.layoutSublayersOfLayer(layer)
updateLayerFrames()
}

the error states this function does not override anything in the superclass...

@Sundin
Copy link

Sundin commented Oct 18, 2016

Try changing it to:

override func layoutSublayers(of layer: CALayer) {
super.layoutSublayers(of: layer)
updateLayerFrames()
}

The reason is that this function has been renamed in Swift 3.

@nalogowiec
Copy link
Author

Thank you man for a quick solution and a great answer, it of course works :)

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