GithubHelp home page GithubHelp logo

smartgauge's People

Contributors

rameezhandel avatar rameezibrahim01 avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar

smartgauge's Issues

fail in setupTickLayer() function in SGTickLayer

falls in

for tickNumber in 0...numberOfMajorTicks {
let val = CGFloat(tickNumber) * divider
let finalTickVal = angleForValue(CGFloat(val))
majorTickValuesArray.append(Int(finalTickVal))
}
with error: Thread 1: Swift runtime failure: Double value cannot be converted to Int because it is either infinite or NaN

Swift Package Manager support

Hi

This is more asking out of curiosity, although it would be nice to have. Are there any current plans for SmartGauge to support Swift Package Manager?

Remove handle layer from gauge

Hello,
how can i remove or customize the handle in GAUGE type (not goal ) without having to write in the SmartGauge plugin?
Can I import something directly into my project?

Thnx

Want to animate smoothly of smart gauge view using Timer

I want to update gauge value with timer with smooth animation, currently the value is updated using Timer but the animation is not smooth, showing jerky animation. Is there any property like "gaugeView.setGaugeValue" instead "gaugeView.gaugeValue"?

Here is my code:

var timer = Timer()
    var speedTime : Int = 0
    {
        didSet
        {
            DispatchQueue.main.async {
                self.gaugeView.gaugeValue = CGFloat(CGFloat(self.speedTime))
            }
        }
    }

override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
        setupGaugeView()
        timer = Timer.scheduledTimer(timeInterval: 0.1, target: self, selector: #selector(self.updateTimer), userInfo: nil, repeats: true)
    }

@objc func updateTimer() {
        if speedTime >= 80 {
            timer.invalidate()
        } else {
            speedTime += 1
        }
    }

Please help me and provide any solution for this.
Thank you in advance.

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.