Avi Rok
Avi Rok

Reputation: 558

NSProgressIndicator UI not update

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

Upvotes: 0

Views: 37

Answers (1)

Avi Rok
Avi Rok

Reputation: 558

Solved it with set isIndeterminate property to false

hudSlider.isIndeterminate = false

Upvotes: 0

Related Questions