I've created a segmented control for my app that consists of 4 segments. I know how to change a background color for the all four of them but I want each segment to have their own color:
1st segment - blue background color
2nd segment - red background color
etc.
Is there any way to achieve it in swift?