Latest 1.2.0
Homepage https://github.com/Navideck/TDRoundedNavigationBar
License MIT
Platforms ios 9.0, requires ARC
Authors

iOS 9+
Swift 3
CocoaPods Compatible
License: MIT

TDRoundedNavigationBar1
TDRoundedNavigationBar2

TDRoundedNavigationBar is an iOS UINavigationBar subclass that you can use in your own projects. It supercharges UINavigationBar with these features:

  • Rounded corners. Round the corner’s of your navigation bar using any radius. You can even leave the corners square by setting radius to zero.
  • Custom bar height. Make you navigation bar taller or shorter.
  • Custom bar width. Set the space you want to leave on the left and right of the navigation bar.
  • Auto item positioning. TDRoundedNavigationBar will position automatically every Navigation Bar element including title, back button or custom UIBarButtonItems to adapt to the custom size you ‘ve set.
  • Vertical Bar positioning. Set the distance you want from the top of the screen when the status bar is hidden.
  • iPhone and iPad support.
  • Supports any orientation (portrait or landscape).

Installation

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

pod "TDRoundedNavigationBar"

or if you don’t want to use CocoaPods:

‘Drag the "TDRoundedNavigationBar.swift" file inside your project

Usage

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

For your own app, after you follow the installation instructions, either:

Through Interface Builder

Open your Storyboard find your Navigation Bar (probably in your Navigation Controller) and set it’s Class property and Module to "TDRoundedNavigationBar". That’s it!

Through code

Instantiate using the init(frame: CGRect) method

Requirements

Written in Swift 3 for iOS 9+

Customization

You can customise the properties of TDRoundedNavigationBar.

  • navBarHeight sets the bar’s height
  • navBarRadius sets the corner radius
  • navBarSideSpacing sets the spacing on the left and right
  • navBarSpacingWhenStatusBarHidden sets the distance from the top of the screen when the status bar is hidden so that the bar has a nice floating effect.
  • corners sets which corners will be rounded

Author

Fotis Dimanidis, (@fotiDim).

License

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

Latest podspec

{
    "name": "TDRoundedNavigationBar",
    "version": "1.2.0",
    "summary": "Custom UINavigationBar with rounded corners and many other features - written in Swift.",
    "description": "Written in Swift 3 for iOS 9+n-------------nnTDRoundedNavigationBar is an iOS UINavigationBar subclass that you can use in your own projects. It supercharges UINavigationBar with these features:nn> **Features:**n> - **Rounded corners.** Round the corner's of your navigation bar using any radius. You can even leave the corners square by setting radius to zero.n> - **Custom bar height.** Make you navigation bar taller or shorter.n> - **Custom bar width.** Set the space you want to leave on the left and right of the navigation bar.n> - **Auto item positioning**. TDRoundedNavigationBar will position automatically every Navigation Bar element including title, back button or custom UIBarButtonItems to adapt to the custom size you 've set.n> - **Vertical Bar positioning.** Set the distance you want from the top of the screen when the status bar is hidden.n> - **iPhone and iPad support**.n> - **Supports any orientation** (portrait or landscape).",
    "homepage": "https://github.com/Navideck/TDRoundedNavigationBar",
    "license": "MIT",
    "authors": {
        "Fotis Dimanidis": "[email protected]"
    },
    "source": {
        "git": "https://github.com/Navideck/TDRoundedNavigationBar.git",
        "tag": "1.2.0"
    },
    "platforms": {
        "ios": "9.0"
    },
    "requires_arc": true,
    "source_files": "TDRoundedNavigationBar/*.swift",
    "pushed_with_swift_version": "3.0"
}

Pin It on Pinterest

Share This