Giter Club home page Giter Club logo

agnavigationbarshape's Introduction

AGNavigationBarShape

CI Status Version License Platform Language

Download

iOS Navigation Bar with customs shapes (Zigzag, Wave and Square) written in Swift 2.

sample

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

Installation

####CocoaPods

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

pod "AGNavigationBarShape"

####Manually Add the AGNavigationBarShape.swift file to your project.

##Usage

###Setup

Add import AGNavigationBarShape in your file

In your app delegate:

func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.

let rootViewController = UIStoryboard.init(name: "Main", bundle: nil).instantiateInitialViewController()
let navController = UINavigationController(navigationBarClass: AGNavigationBarShape.self, toolbarClass: nil)

(navController.navigationBar as? AGNavigationBarShape)?.mode = .Zigzag
(navController.navigationBar as? AGNavigationBarShape)?.color = UIColor.purpleColor()
(navController.navigationBar as? AGNavigationBarShape)?.cycles = 5

navController.viewControllers = [rootViewController!]

window?.rootViewController = navController
window?.makeKeyWindow()
return true
}

####Storyboard Support

  1. Add AGNavigationBarShape Class and Module to UINavigationController's navigationBar in Identity Inspector

sample

  1. If you want to custom it, set options in the Attributes Inspector tab

sample

Features

  • Choose shape mode (0: Zigzag, 1: Wave, 2: Square) (Zigzag by default)
  • Custom number of cycle (9 by default)
  • Custom background color (orange by default)

Author

Aurelien Grifasi, [email protected]

License

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

agnavigationbarshape's People

Contributors

grifas avatar

Stargazers

Abhay Korat avatar

Watchers

James Cloos avatar Abhay Korat avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.