-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathRangeUISliderDelegate.swift
36 lines (30 loc) · 1.11 KB
/
RangeUISliderDelegate.swift
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
//
// RangeUISliderDelegate.swift
// RangeUISlider
//
// Created by Fabrizio Duroni on 29/09/2017.
// 2017 Fabrizio Duroni.
//
import Foundation
import UIKit
/**
Protocol used delegate the read of the RangeUISlider data. Multiple RangeUISlider instance could use the same delegate.
The current slider (on which the user is tapping) is returned in all the methods (so that could be identified on the
delegate class).
*/
@objc public protocol RangeUISliderDelegate {
/**
Calls the delegate when the user has started the change of the range.
*/
@objc optional func rangeChangeStarted()
/**
Calls the delegate when the user is changing the range by moving the knobs.
- parameter event: the change event data. See `RangeUISliderChangeEvent`.
*/
@objc optional func rangeIsChanging(event: RangeUISliderChangeEvent)
/**
Calls the delegate when the user has finished the change of the range.
- parameter event: the change finish event data. See `RangeUISliderChangeFinishedEvent`.
*/
@objc func rangeChangeFinished(event: RangeUISliderChangeFinishedEvent)
}