explaingit

telly/tlyshynavbar

Analysis updated 2026-07-03

3,705Objective-CAudience · developerComplexity · 2/5LicenseSetup · easy

TLDR

An iOS component that automatically hides the navigation bar when the user scrolls down and brings it back when they scroll up, giving content more screen space with just one line of setup code.

Mindmap

mindmap
  root((TLYShyNavBar))
    What it does
      Hides navbar on scroll down
      Shows navbar on scroll up
      More space for content
    Supported views
      UIScrollView
      UITableView
      UICollectionView
    Configuration
      Extension view support
      Sticky bar option
      Scroll resistance settings
      Fade behavior
    Setup
      CocoaPods or Carthage
      One line of code
      Swift via bridging header
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Add an auto-hiding navigation bar to an iOS reading or browsing app to give content more vertical space

USE CASE 2

Attach a collapsible toolbar below the navigation bar that scrolls away before the navbar itself starts hiding

USE CASE 3

Use a sticky extension view that stays on screen while the navigation bar collapses as the user scrolls

USE CASE 4

Integrate a shy navigation bar into a Swift iOS app using the Objective-C bridging header

What is it built with?

Objective-CiOSCocoaPodsCarthage

How does it compare?

telly/tlyshynavbarjawbone/jbchartviewleichunfeng/mvvmreactivecocoa
Stars3,7053,7083,696
LanguageObjective-CObjective-CObjective-C
Setup difficultyeasyeasymoderate
Complexity2/52/53/5
Audiencedeveloperdeveloperdeveloper

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Do not use with UITableViewController directly, embed UITableView inside a plain UIViewController instead.

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

In plain English

TLYShyNavBar is a component for iOS apps that makes the navigation bar at the top of the screen automatically hide as the user scrolls down and reappear as they scroll up. This behavior is familiar from apps like Facebook, Instagram, and 9gag (which uses this library directly). The goal is to give content more vertical space while the user is reading or browsing, without requiring the developer to write the scrolling logic from scratch. Adding it to a project takes one line of code once the library is installed via CocoaPods or Carthage. You assign your scroll view to a shyNavBarManager property that attaches itself to your view controller, and the component handles the rest automatically. It works with UIScrollView, UITableView (including table headers), and UICollectionView. One limitation the README notes: it should not be used with UITableViewController directly, instead, embed a UITableView inside a plain UIViewController. Beyond the basic hide-and-show behavior, TLYShyNavBar offers several configuration options. You can attach an extension view (such as a toolbar) beneath the navigation bar that slides away first before the bar itself begins to shrink. You can make the extension view or the navigation bar sticky so it stays on screen even when fully scrolled. Resistance settings let you control how far the user must scroll before the bar starts contracting or expanding, and fade behavior is also configurable. The library supports both opaque and translucent navigation bar styles and handles edge cases like in-call status bars. It can be used in Swift projects through a bridging header using the same Objective-C setup instructions. The project is released under the MIT license.

Copy-paste prompts

Prompt 1
I want to add an auto-hiding navigation bar to my iOS UITableView app using TLYShyNavBar. Show me how to install via CocoaPods and the one line of code needed to attach it to my view controller.
Prompt 2
Using TLYShyNavBar, how do I add a toolbar extension beneath the navigation bar that slides away first before the nav bar starts hiding as the user scrolls?
Prompt 3
I want the navigation bar to stay visible until the user scrolls a certain distance before it starts collapsing. How do I set the resistance value in TLYShyNavBar?
Prompt 4
How do I use TLYShyNavBar in a Swift project? Walk me through the bridging header setup and attaching shyNavBarManager to a view controller that contains a UITableView.

Frequently asked questions

What is tlyshynavbar?

An iOS component that automatically hides the navigation bar when the user scrolls down and brings it back when they scroll up, giving content more screen space with just one line of setup code.

What language is tlyshynavbar written in?

Mainly Objective-C. The stack also includes Objective-C, iOS, CocoaPods.

What license does tlyshynavbar use?

Use freely for any purpose, including commercial use, as long as you keep the copyright notice.

How hard is tlyshynavbar to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is tlyshynavbar for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Scan in gitsafehub Deploy in gitdeployhub telly on gitmyhub

Verify against the repo before relying on details.