tristanhimmelman / HidingNavigationBar

Easily hide and show a view controller's navigation bar (and tab bar) as a user scrolls
MIT License
1.03k stars 127 forks source link

issue 'isnan' is unavailable: use the isNaN property. in Swift 3 #48

Closed X901 closed 8 years ago

X901 commented 8 years ago

Hi , I have this issue after I convert my project to Swift 3

X901 commented 8 years ago

I fix the error , after convert the library to Swift 3 you will notice the problem in this line if isnan(previousYOffset) == false and the error " 'isnan' is unavailable: use the isNaN property. "

change this line from " if isnan(previousYOffset) == false " to " if previousYOffset.isNaN == false "

After that the library will work in Swift 3

tristanhimmelman commented 8 years ago

I have just updated the library with swift3 support. Please use v1.0.0