NSProgressIndicator UI not update

36 Views Asked by At

I'm trying to update manually the doubleValue of NSProgressIndicator but the UI of the fill progress bar is stay on minimum. What am I doing wrong? On the log the values are updated

//Add progress-bar
    var hudSlider = NSProgressIndicator(frame: NSRect(x: view.frame.midX, y: view.frame.midY, width: 100, height: 40))
    hudSlider.minValue = 0.0
    hudSlider.maxValue = 100.0
    hudSlider.doubleValue = 50.0
    view.addSubview(hudSlider, positioned: .above, relativeTo: nil)

UI of NSProgressIndicator

1

There are 1 best solutions below

0
Avi Rok On

Solved it with set isIndeterminate property to false

hudSlider.isIndeterminate = false