Transparent segmented control

There is no way to make an instance of UISegmentedControl transparent like it's done in Photos or Camera. Especially it looks wrong when segmented control is put to a Liquid Glass container.

  • Setting background colour to nil or clear does not help
  • If a transparent image is set as a background image for state and bar metrics, it kills liquid glass selection and segments started to look wrong

How can the standard gray-ish background can be removed?

Here is how it looks by default:

Here is what's needed to be achieved:

Transparent segmented control
 
 
Q