UISlider 3 colors visible from the start

How can i make a slider 3 colors Yellow, Green, Red in swift 4 Xcode 9? They should be in that order and if you start the app you shall see it as a 3 colored slider. no tintcolored slider that changes colors after where the thumb is. it shall be three colored eaven if it has not been interacted with. The slider thumb shall change color after the slider colorgif

Hi, Jon! Your question is mostly off-topic here, since it’s about the iOS SDK, not the Swift language itself. I suggest that you try at Stack Overflow, you’re much more likely to get an answer there.