TGLParallaxCarousel icon indicating copy to clipboard operation
TGLParallaxCarousel copied to clipboard

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

Open iamanap opened this issue 8 years ago • 2 comments

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.

iamanap avatar Jan 18 '17 23:01 iamanap

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

EmmanuelC19 avatar Jan 20 '17 22:01 EmmanuelC19

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

niamh-power avatar Mar 15 '17 09:03 niamh-power