I have a UISlider
from the storyboard in my app. I'd like to change the "track" or bar-looking part to 2x its size and leave the marker/circular part at its current/default size.
Based on this question, they recommended using .transform, which I adapted like so:
Slider.transform = CGAffineTransform(scaleX: 2.0, y: 2.0)
The output is problematic, as it expands the Slider's marker 2x as well.
I am stuck -- is there a way that I can modify just the track to make it bigger? I have not found a good solution.
I should note that I'd ideally like to use the storyboard element rather than creating an image, if possible. I'd like to do it programmatically.