Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.
This repository was archived by the owner on Nov 13, 2025. It is now read-only.

UIControlEventValueChanged for HMSegmentedControl not called on page swipe. #24

@zeeshankhan

Description

@zeeshankhan

Hi,

When we swipe pages, HMSegmentedControl's UIControlEventValueChanged event is not getting triggered.
I've added an action to pageControl which listens to UIControlEventValueChanged event. which is not getting called on page swipe. Any help?
I tried adding an observer to selectedSegmentIndex property of pageControl, but this is not working on right swipe gesture.
I even tried finding swipe gesture of pageViewController but that property is nil.
The solution I see is to expose - (void)setSelectedSegmentIndex:(NSUInteger)index animated:(BOOL)animated notify:(BOOL)notify function from HMSegmentedControl class and call it on didFinishAnimating of UIPageViewController with notify=true.

@hons82 Please let me know, if you have anything in mind. Thanks :)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions