Skip to content

Commit e889a68

Browse files
committed
Updated current index when selected on segmented control.
1 parent ff57a01 commit e889a68

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

Source/PuiPageViewSegmentedControl.swift

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ extension PuiPageViewSegmentedControl: PuiSegmentedControlDelegate {
261261
self.segmentedControlOriginalDelegate?.segmentedControlTransitionEnded(oldValue: oldValue, newValue: newValue)
262262
}
263263

264+
// Update current index to new value
265+
self.currentIndex = newValue
266+
264267
// Animation check
265268
self.isAnimatingView = false
266269
self.containerView.isUserInteractionEnabled = true

0 commit comments

Comments
 (0)