Skip to content

Commit 11ef33f

Browse files
author
Marco Abundo
committed
Added public modifier
1 parent 6747816 commit 11ef33f

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

SLTDoubleTapSegmentedControl/SLTDoubleTapSegmentedControl.swift

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
import 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)

0 commit comments

Comments
 (0)