@@ -10,7 +10,7 @@ import Foundation
1010import UIKit
1111
1212@IBDesignable
13−public class ColorBarPicker: UIControl {
13+open class ColorBarPicker: UIControl {
1414
1515 private var isVertical: Bool = false {
1616 didSet {
@@ -33,7 +33,7 @@ public class ColorBarPicker: UIControl {
3333 private static let indicatorSizeActive = CGSize(width: 40.0, height: 40.0)
3434
3535 @IBInspectable
36− public var hue: CGFloat {
36+ open var hue: CGFloat {
3737 get {
3838 if isVertical {
3939 return 1.0 - value
@@ -112,7 +112,7 @@ public class ColorBarPicker: UIControl {
112112
113113 // MARK: - Drawing
114114
115− override public func layoutSubviews() {
115+ override open func layoutSubviews() {
116116
117117 if colorBarView.superview == nil {
118118
@@ -182,26 +182,26 @@ public class ColorBarPicker: UIControl {
182182 self.value = percent.pinned(between: 0, and: 1)
183183 }
184184
185− override public func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
185+ override open func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
186186 self.trackIndicator(with: touch)
187187
188188 growIndicator()
189189 return true
190190 }
191191
192− override public func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
192+ override open func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
193193 self.trackIndicator(with: touch)
194194
195195 return true
196196 }
197197
198− override public func endTracking(_ touch: UITouch?, with event: UIEvent?) {
198+ override open func endTracking(_ touch: UITouch?, with event: UIEvent?) {
199199 super.endTracking(touch, with: event)
200200
201201 shrinkIndicator()
202202 }
203203
204− override public func cancelTracking(with event: UIEvent?) {
204+ override open func cancelTracking(with event: UIEvent?) {
205205 super.cancelTracking(with: event)
206206
207207 shrinkIndicator()
@@ -250,7 +250,7 @@ public class ColorBarPicker: UIControl {
250250
251251 private let accessibilityInterval: CGFloat = 0.05
252252
253− public override var accessibilityTraits: UIAccessibilityTraits {
253+ open override var accessibilityTraits: UIAccessibilityTraits {
254254 get {
255255 var t = super.accessibilityTraits
256256
@@ -263,7 +263,7 @@ public class ColorBarPicker: UIControl {
263263 }
264264 }
265265
266− public override func accessibilityIncrement() {
266+ open override func accessibilityIncrement() {
267267
268268 var newValue = self.value + accessibilityInterval
269269
@@ -274,7 +274,7 @@ public class ColorBarPicker: UIControl {
274274 self.value = newValue
275275 }
276276
277− public override func accessibilityDecrement() {
277+ open override func accessibilityDecrement() {
278278
279279 var newValue = self.value - accessibilityInterval
280280
@@ -285,7 +285,7 @@ public class ColorBarPicker: UIControl {
285285 self.value = newValue
286286 }
287287
288− public override var accessibilityValue: String? {
288+ open override var accessibilityValue: String? {
289289 get {
290290 return String(format: "%d degrees hue", (self.value * 360.0))
291291 }