Display segmented control in iOS 26 with the previous rounded rectangle style

The default style for a segmented picker in iOS 26 is now a capsule shape. Is it possible to get back the previous rounded rectangle shape?

In SwiftUI I have tried using the clipShape, containerShape, and background modifiers, applying a RoundedRectangle shape with a corner radius, to no avail. In UIKit I have tried to adjust the corner configuration for the UISegmentedControl, also to no avail.

Am I missing something really obvious or is it impossible to change the style here? 🤔

Answered by DTS Engineer in 854810022

That's the new system design for a SegmentedPickerStyle and the shape isn't customizable. Have you considered using a Menu instead since you might be sorting or offering a list of actions ?

I have not found a way to do this with existing API. Probably because it would break from liquid glass look and feel (which would be an issue for UI consistency).

Looks like one need to create custom segmented control.

I've found a lot of information here: https://focuspasta.substack.com/p/building-a-custom-segmented-control

Accepted Answer

That's the new system design for a SegmentedPickerStyle and the shape isn't customizable. Have you considered using a Menu instead since you might be sorting or offering a list of actions ?

Display segmented control in iOS 26 with the previous rounded rectangle style
 
 
Q