romansorochak / ParallaxHeader

Simple way to add parallax header to UIScrollView/UITableView written in Swift.
MIT License
1.03k stars 131 forks source link

Compiler error with cocoapods #10

Open windtalkerlv opened 7 years ago

windtalkerlv commented 7 years ago

After install with cocoapods, there is a compiler error Type 'UILayoutPriority' (aka 'Float') has no member 'defaultHigh' in ParallaxHeader.swift Anyone know whats happening?

johnboker commented 7 years ago

I think this is an issue with using the swift 4 version of this.

put:

pod 'ParallaxHeader', '~> 1.0.6'

in your project to use the swift 3 version.

windtalkerlv commented 6 years ago

Thats what I thought too before I submitted this issue. I read online that cocoapods have some issue mixing swift 3 and swift 4 so I already did 'pod ParallaxHeader', '~> 1.0.6' still have the same problem

johnboker commented 6 years ago

I had the same issue, after adding the version to the pod then running pod update then pod install there was no longer a problem.

Maybe someone else on here can comment with a better solution.

itruf commented 6 years ago

Everything works fine, this issue should be closed