GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - LLFKHL/GKFadeNavigationController: A Navigation Controller which supports animated hiding of the Navigation Bar

BranchesTags
Open more actions menu
 
 

Latest commit

 

History

46 Commits
46 Commits

Folders and files

NameName
Last commit message
Last commit date
Example
Example
 
 
Pod
Pod
 
 
.gitignore
.gitignore
 
 
.travis.yml
.travis.yml
 
 
GKFadeNavigationController.podspec
GKFadeNavigationController.podspec
 
 
LICENSE
LICENSE
 
 
README.md
README.md
 
 
_Pods.xcodeproj
_Pods.xcodeproj
 
 
example.gif
example.gif
 
 
example.mov
example.mov
 
 

Repository files navigation

GKFadeNavigationController

[![CI Status](http://img.shields.io/travis/Gruber Kristóf/GKFadeNavigationController.svg?style=flat)](https://travis-ci.org/Gruber Kristóf/GKFadeNavigationController) Version License Platform

This is an example implementation of a UINavigationController with support of animated hiding and showing it's Navigation Bar.

Demo

Try it yourself

Online simulator on appetize.io

Features

  • Animates tint color
  • Takes care of the status bar color
  • Similar pattern to -preferredStatusbarStyle
  • Uses native controls where possible (e.g. back button)
  • Native looking translucent header
  • Demo project with elastic header image

Installation

GKFadeNavigationController is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod "GKFadeNavigationController"

Then update your pods with pod install.

Usage

  1. To run the example project, clone the repo, and run pod install from the Example directory first.
  2. Set your Navigation Controller class to GKFadeNavigationController in Storyboard
  3. Make your view controllers to conform GKFadeNavigationControllerDelegate protocol
  4. Implement -preferredNavigationBarVisibility (return GKFadeNavigationControllerNavigationBarVisibilityHidden or GKFadeNavigationControllerNavigationBarVisibilityVisible)
  5. Send a -setNeedsNavigationBarVisibilityUpdateAnimated:animated message to the navigation controller when you want to hide or show the navigation bar

You can see the attached demo project for easier reference.

Requirements

  • iOS 8 SDK

Works fine with iOS 10.

Known limitations

  • Does not handle screen rotation fully
  • Supports only light navigation bar style out of the box
  • Items under the header are not clickable
  • Changing the status bar color happens in -viewDidAppear currently

Feel free to contribute or send me pull requests.

Changelog

GitHub Changelog and releases

Author

Gruber Kristóf, [email protected], @gklka

License

GKFadeNavigationController is available under the MIT license. See the LICENSE file for more info.

About

A Navigation Controller which supports animated hiding of the Navigation Bar

Resources

Readme
MIT license
Activity

Stars

0 stars

Watchers

0 watching

Forks

0 forks
Report repository

Releases

Packages

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.