Please add the fix in the code: let thumbViewPositionX = selectedSegmentIndex == 0 ? padding : bounds.width / CGFloat(buttons.count) * CGFloat(selectedSegmentIndex) + padding Under the method: private func setThumbView() {
Please add the fix in the code:
let thumbViewPositionX = selectedSegmentIndex == 0 ? padding : bounds.width / CGFloat(buttons.count) * CGFloat(selectedSegmentIndex) + padding
Under the method:
private func setThumbView() {