Added ability to use ticksListener from Objective C

This commit is contained in:
Vlad Naimark 2018-02-06 15:48:03 +02:00
parent 7f395f6d05
commit 9c83dea17f
2 changed files with 2 additions and 2 deletions

View File

@ -29,7 +29,7 @@
import Foundation
public protocol TGPControlsTicksProtocol
@objc public protocol TGPControlsTicksProtocol
{
func tgpTicksDistanceChanged(ticksDistance:CGFloat, sender:AnyObject)
func tgpValueChanged(value:UInt)

View File

@ -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)