Added ability to use ticksListener from Objective C
This commit is contained in:
parent
7f395f6d05
commit
9c83dea17f
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
import Foundation
|
||||
|
||||
public protocol TGPControlsTicksProtocol
|
||||
@objc public protocol TGPControlsTicksProtocol
|
||||
{
|
||||
func tgpTicksDistanceChanged(ticksDistance:CGFloat, sender:AnyObject)
|
||||
func tgpValueChanged(value:UInt)
|
||||
|
|
|
|||
|
|
@ -235,7 +235,7 @@ public class TGPDiscreteSlider:TGPSlider_INTERFACE_BUILDER {
|
|||
set {}
|
||||
}
|
||||
|
||||
public var ticksListener:TGPControlsTicksProtocol? = nil {
|
||||
@objc public var ticksListener:TGPControlsTicksProtocol? = nil {
|
||||
didSet {
|
||||
ticksListener?.tgpTicksDistanceChanged(ticksDistance: ticksDistance,
|
||||
sender: self)
|
||||
|
|
|
|||
Loading…
Reference in New Issue