TONavigationBar

TONavigationBar is an open-source subclass of UINavigationBar that adds the ability to set the background content of the navigation bar to transparent, and then gradually bring it back in as the user scrolls through the page.

Apple uses this effect in their ‘modern’ style iOS apps (Music, TV, App Store) for any content deemed ‘notable’. Unfortunately, while it seems like a trivial thing to be able to do, none of the APIs necessary to reconfigure a UINavigationBar to be transparent in that way exist. TONavigationBar internally re-implements a variety of the UINavigationBar functionality in order to make this possible.

Features:

  • Fully integrates into UINavigationController.
  • Participates in UINavigationController’s ‘swipe-to-go-back’ gesture.
  • Supports light and dark themed apps.
  • Features an animation to restore to the normal UINavigationBar appearance.
  • A target UIScrollView may be specified in order to avoid having to manually pass information to the bar.
  • Library also features TOHeaderImageView, a header view that may be used as the banner in scroll views.

Posted

in

,

by

Comments

Leave a Reply