I'm trying to make my sliders at 0 make no shape but the issue is when any slider hits 0 it makes the shape go to its maximum size. What should I do?
Code Block func goToZero() { if otSlider.value == 0 { otWidth.constant = 0 print(otWidth.constant) } else if efSlider.value == 0 { efWidth.constant = 0 } else if ifSlider.value == 0 { ifWidth.constant = 0 } }
Alright I made a func that fixes the issue using the alpha.
Code Block func goToZero() { if otSlider.value == 0 { otShape.alpha = 0 } else if efSlider.value == 0 { efShape.alpha = 0 } else if ifSlider.value == 0 { ifShape.alpha = 0 } else { otShape.alpha = 1 efShape.alpha = 1 ifShape.alpha = 1 } }