Merge pull request #45 from VladNaimark/master

Added ability to use ticksListener from Objective C
This commit is contained in:
Xavier Schott 2018-04-07 17:08:01 -07:00 committed by GitHub
commit 51fa92ab8b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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)