Group Group Group Group Group Group Group Group Group

Chapter 19: The New Look; The slider


I have exactly copied the given code (page 585) and also the images are there.
But the slider color does not change to green. Does anyone have an idea what is wrong?

Can anyone please help me to find a solution for this???

Hi @danking, do you have this setup for the SlidertrackLeft asset?

let trackLeftImage = UIImage(named: "SliderTrackLeft")!
let trackLeftResizable = trackLeftImage.resizableImage(withCapInsets: insets)
    slider.setMinimumTrackImage(trackLeftResizable, for: .normal)

Hi @gdelarosa,
this is what my code looks like:

@danking, your code looks correct. What have you tried so far in regards to finding a solution?

Hi @gdelarosa ,
thanks for your reply. Since I am not really good at this, the only thing I was able to do, was to check and double check my coding. I restarted the lesson, to make sure I did not miss anything. I also re-imported the pictures to make sure they have the correct name.
Everything seems to be correct to me.
What else could I do?

good. so I’ll just leave it like it is…

@danking Do you still have issues with this?

Never fixed it. I have moved on…