SwiftUI Slider Control Value is change

I want to change the value with a slider control.

slider(value: $value)

... ... ...

value = 1

Can't change slider value when debugging.

slider value want to change and I want to change it by user's operation.

how to do?

I was able to solve the problem

slider(value: $value)

... ... ...

// add guard guard variable < sliderValueMin && variable > sliderValueMax else{

value = variable

}

only enter when the variable is within the range.

solve the problem.

SwiftUI Slider Control Value is change
 
 
Q