Skip to content

Commit 5e69cbf

Browse files
committed
update for CocoaPods
1 parent 246216c commit 5e69cbf

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

DQSegmentedControl/DQSegmentedControl.swift

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88

99
import UIKit
1010

11-
open class DQSegmentedControl: UIControl {
11+
public class DQSegmentedControl: UIControl {
1212

1313
//MARK: - Property
1414

@@ -111,7 +111,7 @@ open class DQSegmentedControl: UIControl {
111111
private let kBoxLeftOffSet: CGFloat = 6.0
112112
private let kBoxGapText: CGFloat = 2.0
113113

114-
override var frame: CGRect {
114+
override public var frame: CGRect {
115115
didSet {
116116
super.frame = frame
117117
updateSegmentsRect()
@@ -146,7 +146,7 @@ open class DQSegmentedControl: UIControl {
146146
self.isOpaque = false
147147
}
148148

149-
override func willMove(toSuperview newSuperview: UIView?) {
149+
override public func willMove(toSuperview newSuperview: UIView?) {
150150
if newSuperview == nil {
151151
return
152152
}
@@ -155,12 +155,12 @@ open class DQSegmentedControl: UIControl {
155155
}
156156
}
157157

158-
override func layoutSubviews() {
158+
override public func layoutSubviews() {
159159
super.layoutSubviews()
160160
updateSegmentsRect()
161161
}
162162

163-
override func draw(_ rect: CGRect) {
163+
override public func draw(_ rect: CGRect) {
164164
backgroundColor?.setFill()
165165
UIRectFill(self.bounds)
166166
selectionIndicatorStripLayer.backgroundColor = selectionIndicatorColor.cgColor
@@ -233,7 +233,7 @@ open class DQSegmentedControl: UIControl {
233233

234234
// MARK: - Touch
235235

236-
override func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
236+
override public func touchesEnded(_ touches: Set<UITouch>, with event: UIEvent?) {
237237
let touch = (touches as NSSet).anyObject() as AnyObject
238238
let touchLocation = touch.location(in: self)
239239

0 commit comments

Comments
 (0)