Chapter 19: The New Look; The slider

Hi,

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?

Bildschirmfoto 2020-03-27 um 10.55.43

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)
1 Like

Hi @gdelarosa,
this is what my code looks like:
Bildschirmfoto 2020-03-29 um 10.58.55

@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?

1 Like

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…

This topic was automatically closed after 166 days. New replies are no longer allowed.