Plain Segmented Control

Hi,

How to remove a background color from segmented control ? in SwiftUI.

Kindest Regards

You can set the background color to something but I don't know if you can remove it:

UISegmentedControl.appearance().backgroundColor = .red

Thanks allot, that doesn't work even when choosing white color the default gray background stays

It seems that the color are siuperposed. I mean, .red makes a red background, but .white does not change anything, just as if it was adding composing defaut gray color with the one used for background.

Plain Segmented Control
 
 
Q