Skip to content

Commit cffc156

Browse files
fix: update a method to calculate a corner radius for the selected segment
1 parent ed16a8d commit cffc156

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Sources/ComponentsKit/Components/SegmentedControl/Models/SegmentedControlVM.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ extension SegmentedControlVM {
102102
case .none, .full, .custom:
103103
return componentRadius
104104
case .small, .medium, .large:
105-
return max(0, componentRadius - self.outerPaddings / 2)
105+
return max(0, componentRadius - self.outerPaddings)
106106
}
107107
}
108108
func preferredFont(for id: ID) -> UniversalFont {

0 commit comments

Comments
 (0)