@@ -10,7 +10,7 @@ import Foundation
10import UIKit
10import UIKit
12@IBDesignable
12@IBDesignable
13−public class ColorBarPicker: UIControl {
13+open class ColorBarPicker: UIControl {
15 private var isVertical: Bool = false {
15 private var isVertical: Bool = false {
@@ -33,7 +33,7 @@ public class ColorBarPicker: UIControl {
33 private static let indicatorSizeActive = CGSize(width: 40.0, height: 40.0)
33 private static let indicatorSizeActive = CGSize(width: 40.0, height: 40.0)
35 @IBInspectable
35 @IBInspectable
36− public var hue: CGFloat {
36+ open var hue: CGFloat {
38 if isVertical {
38 if isVertical {
39 return 1.0 - value
39 return 1.0 - value
@@ -112,7 +112,7 @@ public class ColorBarPicker: UIControl {
113 // MARK: - Drawing
113 // MARK: - Drawing
115− override public func layoutSubviews() {
115+ override open func layoutSubviews() {
117 if colorBarView.superview == nil {
117 if colorBarView.superview == nil {
@@ -182,26 +182,26 @@ public class ColorBarPicker: UIControl {
182 self.value = percent.pinned(between: 0, and: 1)
182 self.value = percent.pinned(between: 0, and: 1)
185− override public func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
185+ override open func beginTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
186 self.trackIndicator(with: touch)
186 self.trackIndicator(with: touch)
188 growIndicator()
188 growIndicator()
189 return true
189 return true
192− override public func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
192+ override open func continueTracking(_ touch: UITouch, with event: UIEvent?) -> Bool {
193 self.trackIndicator(with: touch)
193 self.trackIndicator(with: touch)
195 return true
195 return true
198− override public func endTracking(_ touch: UITouch?, with event: UIEvent?) {
198+ override open func endTracking(_ touch: UITouch?, with event: UIEvent?) {
199 super.endTracking(touch, with: event)
199 super.endTracking(touch, with: event)
201 shrinkIndicator()
201 shrinkIndicator()
204− override public func cancelTracking(with event: UIEvent?) {
204+ override open func cancelTracking(with event: UIEvent?) {
205 super.cancelTracking(with: event)
205 super.cancelTracking(with: event)
207 shrinkIndicator()
207 shrinkIndicator()
@@ -250,7 +250,7 @@ public class ColorBarPicker: UIControl {
251 private let accessibilityInterval: CGFloat = 0.05
251 private let accessibilityInterval: CGFloat = 0.05
253− public override var accessibilityTraits: UIAccessibilityTraits {
253+ open override var accessibilityTraits: UIAccessibilityTraits {
255 var t = super.accessibilityTraits
255 var t = super.accessibilityTraits
@@ -263,7 +263,7 @@ public class ColorBarPicker: UIControl {
266− public override func accessibilityIncrement() {
266+ open override func accessibilityIncrement() {
268 var newValue = self.value + accessibilityInterval
268 var newValue = self.value + accessibilityInterval
@@ -274,7 +274,7 @@ public class ColorBarPicker: UIControl {
274 self.value = newValue
274 self.value = newValue
277− public override func accessibilityDecrement() {
277+ open override func accessibilityDecrement() {
279 var newValue = self.value - accessibilityInterval
279 var newValue = self.value - accessibilityInterval
@@ -285,7 +285,7 @@ public class ColorBarPicker: UIControl {
285 self.value = newValue
285 self.value = newValue
288− public override var accessibilityValue: String? {
288+ open override var accessibilityValue: String? {
290 return String(format: "%d degrees hue", (self.value * 360.0))
290 return String(format: "%d degrees hue", (self.value * 360.0))