Latest 0.0.2
Homepage https://github.com/GorXion/UIViewController-NavigationBar
License MIT
Platforms ios 8.0, requires ARC
Frameworks UIKit, Foundation
Authors

Overview

snapshot

Installation

Use CocoaPods

  pod 'FKNavigationBar'

Usage

Import

  import FKNavigationBar

Setup

  // before window set root view controller
  UIViewController.setupNavigationBar

To enable FKNavigationBar of a navigation controller

  let nav = UINavigationController(rootViewController: vc)
  nav.navigation.configuration.enabled = true

Setting

Global

  let nav = UINavigationController(rootViewController: vc)
  nav.navigation.configuration.titleTextAttributes = [.foregroundColor: UIColor.blue]
  nav.navigation.configuration.barTintColor = UIColor.red
  nav.navigation.configuration.backgroundImage = UIImage(named: "nav")
  nav.navigation.configuration.shadowImage = UIImage(named: "shadow")

Each view controller

  self.navigation.bar  -> UINavigationBar
  self.navigation.item -> UINavigationItem

Latest podspec

{
    "name": "FKNavigationBar",
    "version": "0.0.2",
    "summary": "A custom navigation bar of UIViewController.",
    "description": "u4e3au5bfcu822au63a7u5236u5668u4e0bu7684u6bcfu4e00u4e2au63a7u5236u5668u6dfbu52a0u4e00u4e2au81eau5b9au4e49u7684u5bfcu822au680f, u91cdu5199u4e86alphau548cbackgroundColor,n tt   u79fbu9664u4e86u6a21u7ccau6548u679c",
    "homepage": "https://github.com/GorXion/UIViewController-NavigationBar",
    "license": "MIT",
    "authors": {
        "GorXion": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/GorXion/UIViewController-NavigationBar.git",
        "tag": "0.0.2"
    },
    "source_files": "Source/*.swift",
    "frameworks": [
        "UIKit",
        "Foundation"
    ],
    "requires_arc": true,
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This