Latest 0.1.0
License MIT
Platforms ios 8.0

CocoaPods Compatible
Platform iOS
License MIT



NBGaugeView is a small library to create and display Gauge Views. It is fully customizable: you can set the color, size, text and many other properties of the gauge. This is a simple donut used for displaying text in hollow circle.


  • iOS 8+
  • Xcode 9.0+



Add the NBGaugeView pod into your project and run pod install

pod 'NBGaugeView'

Manual Install

Download NBGaugeVIew and import NBGaugeView.swift inside your xcode project.

Sample App

To start using NBGaugeView you can build the provided example project

  1. Open Example/NBGaugeView.xcodeproj in Xcode.
  2. Build and run.


It’s very easy to set up, just import NBGaugeView in your Swift code:

import NBGaugeView

Interface Builder:

Add an UIView with interface builder and set NBGaugeView as UIView custom class.

Link it with the outlet property declared in your code.

@IBOutlet private weak var gaugeView: NBGaugeView!

It’s simple to customize! Here’s an example of configuration of the view.

gaugeView.startAngle = 0
gaugeView.percentage = 60
gaugeView.thickness = 20
gaugeView.labelFont = UIFont.systemFont(ofSize: 40)
gaugeView.labelColor =
gaugeView.gaugeBackgroundColor = UIColor.gray
gaugeView.gaugeColor =


Radius fo the view is automatically adjusted with min of width and height of the view.

Radius can be fetched using the below property at anytime.

let radius = gaugeView.radius


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

Latest podspec

    "name": "NBGaugeView",
    "version": "0.1.0",
    "summary": "NBGaugeView is a simple and customizable gauge control for iOS.",
    "description": "NBGaugeView is a simple donut used for displaying text in hollow circle.",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    "authors": {
        "NikhilBatra": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.1.0"
    "platforms": {
        "ios": "8.0"
    "source_files": "NBGaugeView/Classes/**/*",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This