HMSegmentedControl icon indicating copy to clipboard operation
HMSegmentedControl copied to clipboard

Thanks! Allows for repeated selection!

Open zhiqiangbai opened this issue 8 years ago • 0 comments

Thanks! I am looking forward to adding a property that allows for repeated selection. eg: @property(nonatomic, getter = isRepeatSelectedEnabled) BOOL repeatSelectedEnabled;

then use in here:

    if ((self.isRepeatSelectedEnabled ? : segment != self.selectedSegmentIndex) && segment < sectionsCount) {
        // Check if we have to do anything with the touch event
        if (self.isTouchEnabled)
            [self setSelectedSegmentIndex:segment animated:self.shouldAnimateUserSelection notify:YES];
    }

zhiqiangbai avatar Nov 14 '16 07:11 zhiqiangbai