-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathEKSwipeSlider.h
43 lines (33 loc) · 1.05 KB
/
EKSwipeSlider.h
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
37
38
39
40
41
42
43
//
// EKSwipeSlider.h
// EKSwipeSlider
//
// Created by Chris Schneider on 6/8/12.
// Copyright (c) 2012 __MyCompanyName__. All rights reserved.
//
#import "EKSwipeControl.h"
@interface EKSwipeSlider : EKSwipeControl {
@private
CGFloat _initialValue;
CGFloat _lastSentValue;
NSMutableDictionary *_trackColorDict;
}
// Value
@property (nonatomic) float value;
- (void)setValue:(float)value animated:(BOOL)animated;
// Value Limits
@property (nonatomic) float minimumValue;
@property (nonatomic) float maximumValue;
// Track view
@property (strong, nonatomic) IBOutlet UIView *trackView;
// Behavior
@property (nonatomic, getter=isContinuous) BOOL continuous;
// Layout
- (CGRect)trackRectForBounds:(CGRect)bounds;
@property (nonatomic) CGFloat width;
@property (nonatomic) CGFloat offset;
// Appearance
- (UIColor *)trackColorForState:(UIControlState)state UI_APPEARANCE_SELECTOR;
- (void)setTrackColor:(UIColor *)color forState:(UIControlState)state UI_APPEARANCE_SELECTOR;
@property (readonly, strong, nonatomic) UIColor *currentTrackColor;
@end