taglia3 / TGLParallaxCarousel

A lightweight 3D Linear Carousel with parallax effect
MIT License
436 stars 63 forks source link

No '-' candidates produce the expected contextual result type 'CGFloat' #13

Open iamanap opened 7 years ago

iamanap commented 7 years ago
screen shot 2017-01-18 at 21 41 08

I added TGLParallaxCarousel using the latest branch available on master and I'm getting this error on build phase.

EmmanuelC19 commented 7 years ago

In Swift 3, many implicit type conversions, like Int to NSNumber, are removed. You need to explicitly cast the types between them.

t.m34 = -(1 / 500) as CGFloat

niamh-power commented 7 years ago

Hey my pull request fixes this https://github.com/taglia3/TGLParallaxCarousel/pull/11