andreamazz / AMScrollingNavbar

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

scrollingNavigationController:didChangeState never calling #333

Closed StefaniOSApps closed 5 years ago

StefaniOSApps commented 5 years ago

Describe the bug The func scrollingNavigationController:didChangeState is never calling. (ScrollingNavigationControllerDelegate)

To Reproduce Steps to reproduce the behavior:

  1. Open Demo
  2. Search for "didChangeState"
  3. Only one result at line 12 on ScrollingNavigationController.swift: @objc optional func scrollingNavigationController(_ controller: ScrollingNavigationController, didChangeState state: NavigationBarState) (never used)

Expected behavior Presumably it was forgotten to use this function in the code. Please insert this function in the "completion" block of "UiView.animate".

andreamazz commented 5 years ago

Fixed in #341