Condensing effect of navigation bar as the one in Safari.app
Though iOS 8 introduce the condensesBarsOnSwipe property. It's still not the same as the one we see in Safari.app.
| Safari | IPSqueezableViewController |
|---|---|
![]() |
![]() |
CocoaPods is the recommended method to install. Simply add the following line to your Podfile:
pod 'IPSqueezableViewController'- Make your view controller inherit
IPSqueezableViewController. - Set up the
triggeringScrollViewproperty as the scrollview you want to trigger the condensing effect. - Set up
ip_rightNavBarItemproperty to the bar button item you want to show as the right bar button item of the view controller. - See
Demo/IPSqueezableViewController.xcodeprofor example.
- The subclass of IPSqueezableViewController must be contained in a
UINavigationControllerand cannot be thetopViewControllerof aUINavigationController.
Suggestions or PR are welcome :-)
In short, IPSqueezableViewController is available under the MIT license. See the LICENSE file for more info.

