File tree Expand file tree Collapse file tree
SLTDoubleTapSegmentedControl Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919
2020import UIKit
2121
22- class SLTDoubleTapSegmentedControl : UISegmentedControl {
22+ public class SLTDoubleTapSegmentedControl : UISegmentedControl {
2323
2424 // MARK: Public method
2525
26- func setTintColor( tintColor: UIColor , forSegmentAtIndex index: Int ) {
26+ public func setTintColor( tintColor: UIColor , forSegmentAtIndex index: Int ) {
2727 guard let title = titleForSegment ( at: index) else { return }
2828
2929 let font = UIFont . systemFont ( ofSize: 12 )
@@ -58,7 +58,7 @@ class SLTDoubleTapSegmentedControl: UISegmentedControl {
5858
5959 // MARK: Custom touch handling
6060
61- override func touchesEnded( _ touches: Set < UITouch > , with event: UIEvent ? ) {
61+ override public func touchesEnded( _ touches: Set < UITouch > , with event: UIEvent ? ) {
6262 let previousSelectedSegmentIndex = selectedSegmentIndex
6363
6464 super. touchesEnded ( touches, with: event)
You can’t perform that action at this time.
0 commit comments