andreamazz / AMScrollingNavbar

Scrollable UINavigationBar that follows the scrolling of a UIScrollView
MIT License
6.05k stars 634 forks source link

Collection View not following navigation bar to top, Follower leaves a grey box. #369

Open magiusdarrigo opened 5 years ago

magiusdarrigo commented 5 years ago

I scroll up but the collection view does not follow. I use the storyboard to set up the everything and the constraints.

if let navigationController = navigationController as? ScrollingNavigationController { navigationController.followScrollView(collectionView, delay: 20.0, followers: [NavigationBarFollower(view: exploreSearchBar, direction: .scrollUp)]) } else { print("Not FOUND") }

A short youtube video on the issue: EDIT I had the wrong link up sorry. https://youtu.be/bmP3GWvoWqs

The top constraint for the ui collection view to the bottom of the search bar: Screen Shot 2019-08-09 at 2 26 38 AM

magiusdarrigo commented 5 years ago

Does anyone have any solutions for this issue? thanks ((please)) @andreamazz