How do I remove the outside border of a segmented control? I\'ve set the divider image to what I wanted but now to follow the mock of my app I need to have a segmented cont
Yet putting the two solutions together, I wasn't able to get the correct selected segment in a disabled
state.
What I wanted was that upon selecting a segment and making a network call, I wanted to disable the segmented control.
The outcome was like this:
What was desired was this:
The only addition to Sohil's solution is:
setBackgroundImage(imageWithColor(color: imageWithColor(color: tintColor)), for: [.selected, .disabled], barMetrics: .default)
After the selected && disabled segment will have the right color.