I don't know why this is happening, I checked it on my storyboard, for my code, I've searched similar questions but didn't find anything.
In my tabBar I have 4 tabs, when I selecting tab #2 tabBars background color gets darken but when I select any other tab it works fine. See the image for better understanding.
tab2 selected (and the background color also get changed