Popularity
2.3
Stable
Activity
0.0
Declining
65
6
17

Programming language: Swift
License: MIT License
Tags: UI    
Latest version: v1.1.4

GDGauge alternatives and similar libraries

Based on the "UI" category.
Alternatively, view GDGauge alternatives based on common mentions on social networks and blogs.

Do you think we are missing an alternative of GDGauge or a related project?

Add another 'UI' Library

README

GDGauge - Customizable Gauge View

1

Requirements

  • Xcode 11+
  • Swift 5
  • iOS 9+

Installation

Swift Package Manager

.package(url: "https://github.com/saeid/GDGauge.git", from: "1.2.1")

Cocoapods

pod 'GDGauge'

Usage

Import GDGauge

import GDGauge

Create an instance of GDGaugeView

var gaugeView: GDGaugeView = GDGaugeView(frame: view.bounds)

Setup, customize and build the view

        gaugeView
            .setupGuage(startDegree: CGFloat,
                        endDegree: CGFloat,
                        sectionGap: CGFloat,
                        minValue: CGFloat,
                        maxValue: CGFloat)
            .setupContainer(width: CGFloat,
                            color: UIColor,
                            handleColor: UIColor,
                            shouldShowContainerBorder: Bool,
                            shouldShowFullCircle: Bool,
                            indicatorsColor: UIColor,
                            indicatorsValuesColor: UIColor,
                            indicatorsFont: UIFont)
            .setupUnitTitle(title: String,
                            font: UIFont)
            .buildGauge()

To update the handle value

gaugeView.updateValueTo(CGFloat)

To update colors when a limit is reached

gaugeView.updateColors(containerColor: UIColor,
                        indicatorsColor: UIColor)

To reset to initial colors

gaugeView.resetColors()

Licence

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


*Note that all licence references and agreements mentioned in the GDGauge README section above are relevant to that project's source code only.