Latest 0.1.0
Homepage https://github.com/kyleYang/KYNavigationFadeManager
License MIT
Platforms ios 9.0
Frameworks UIKit
Authors

CI Status
Version
License
Platform

introduction

This fade manager is a easy way to manage the uinavigationbar
Support to change UIBarButtonItem and title color when scroll , the navigation can be clear color (change the alpha from 0 – 1)
The UIBarButtonItem only support UIBarButtonItem.image and UIBarButtonItem’s customView is UIButton (image and backgroundimage) 。
The fullColor shoulde be set. Not detech the image color because it’s maybe wrong

Example

image

To run the example project, clone the repo, and run pod install from the Example directory first.

Easy to use it

init

self.fadeManager = KYNavigationFadeManager(viewController: self, scollView: self.tableView, zeroColor: UIColor.white, fullColor: UIColor.red)
self.fadeManager.allowTitleHidden = shouldeHiddenTitle
self.fadeManager.zeroAlphaOffset  = 0
self.fadeManager.fullAlphaOffset  = 200

prepare and run

 open override func viewWillAppear(_ animated: Bool) {
   super.viewWillAppear(animated)
   self.fadeManager.viewWillAppear(animated)
   self.fixNavigationBarCorruption() 
}

open override func viewWillDisappear(_ animated: Bool) {
   self.fadeManager.viewWillDisappear(animated)
   super .viewWillDisappear(animated)
 }

Requirements

Installation

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

pod "KYNavigationFadeManager"

Author

kyleYang, [email protected]

License

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

Latest podspec

{
    "name": "KYNavigationFadeManager",
    "version": "0.1.0",
    "summary": "A easy way to fade UINavigationController bar and support change bar item color",
    "description": "This fade manager is a easy way to manage the uinavigationbar Support to change UIBarButtonItem and title color when scroll , the navigation can be clear color (change the alpha from 0 - 1) The UIBarButtonItem only support UIBarButtonItem.image and UIBarButtonItem's customView is UIButton (image and backgroundimage) u3002 The fullColor shoulde be set. Not detech the image color because it's maybe wrong!",
    "homepage": "https://github.com/kyleYang/KYNavigationFadeManager",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "kyleYang": "[email protected]"
    },
    "source": {
        "git": "https://github.com/kyleYang/KYNavigationFadeManager.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source_files": "KYNavigationFadeManager/Classes/**/*",
    "frameworks": "UIKit",
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This