Latest 0.8
Homepage https://github.com/gklka/GKFadeNavigationController
License MIT
Platforms ios 8.0, requires ARC
Authors

Version
License
Platform
Releases

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
  • iPhone X support
  • Black navigation bar style support

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 11.

Known limitations

  • 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.

Latest podspec

{
    "name": "GKFadeNavigationController",
    "version": "0.8",
    "summary": "A Navigation Controller which supports animated hiding of the Navigation Bar",
    "description": "This is an example implementation of a `UINavigationController` with support of animated hiding and showing it's Navigation Bar.nn## Featuresnn* Animates tint colorn* Takes care of the status bar colorn* Similar pattern to `-preferredStatusbarStyle`n* Uses native controls where possible (e.g. back button)n* Native looking translucent headern* Demo project with elastic header image",
    "homepage": "https://github.com/gklka/GKFadeNavigationController",
    "screenshots": "https://github.com/gklka/GKFadeNavigationController/blob/master/example.gif?raw=true",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Gruber Kristou0301f": "[email protected]"
    },
    "source": {
        "git": "https://github.com/gklka/GKFadeNavigationController.git",
        "tag": "0.8"
    },
    "social_media_url": "https://twitter.com/gklka",
    "platforms": {
        "ios": "8.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "public_header_files": "Pod/Classes/**/*.h"
}

Pin It on Pinterest

Share This