11#import <UIKit/UIKit.h>
13NS_ASSUME_NONNULL_BEGIN
54@property(nonatomic, strong, nullable) UIColor *
tintColor;
60@property(nonatomic, assign, nullable) UIColor *
textColor;
111@property(nonatomic, assign, nullable) UIFont *
font;
117@property(nonatomic, strong, readonly) UILabel *
label;
124@property(nonatomic, strong, readonly) UILabel *
secondLabel;
133- (instancetype)initWithFrame:(CGRect)frame;
A horizontal segmented control whose selected segment is highlighted by a draggable,...
Definition SVSegmentedControl.h:46
The rounded highlight the segmented control slides over its selected segment.
Definition SVSegmentedThumb.h:26
void deactivate()
Puts the thumb into its selected look, hiding the primary label unless the control crossfades labels ...
Definition SVSegmentedThumb.m:199
void activate()
Restores the thumb to its unselected look, showing the primary label unless the control crossfades la...
Definition SVSegmentedThumb.m:190
UILabel * secondLabel
The secondary (crossfade) title label, created lazily and added as a subview on first access.
Definition SVSegmentedThumb.m:84
UILabel * label
The primary title label, created lazily and added as a subview on first access.
Definition SVSegmentedThumb.m:72
CGSize textShadowOffset
The label text shadow offset.
Definition SVSegmentedThumb.h:72
UIColor * tintColor
The colour multiplied over the default gradient with the overlay blend mode.
Definition SVSegmentedThumb.h:54
BOOL selected
Whether the thumb is in its selected (pressed) look.
Definition SVSegmentedThumb.h:86
UIImage * backgroundImage
A custom image drawn in place of the default gradient when the thumb is unselected.
Definition SVSegmentedThumb.h:40
CGSize shadowOffset
Alias of textShadowOffset.
Definition SVSegmentedThumb.h:98
UIColor * textColor
The label text colour.
Definition SVSegmentedThumb.h:60
UIColor * textShadowColor
The label text shadow colour.
Definition SVSegmentedThumb.h:66
BOOL shouldCastShadow
Whether the thumb casts a drop shadow.
Definition SVSegmentedThumb.h:78
UIFont * font
The font of both labels.
Definition SVSegmentedThumb.m:98
UIImage * highlightedBackgroundImage
A custom image drawn in place of the default gradient when the thumb is selected.
Definition SVSegmentedThumb.h:46
UIColor * shadowColor
Alias of textShadowColor.
Definition SVSegmentedThumb.h:92
SVSegmentedControl * segmentedControl
The owning segmented control.
Definition SVSegmentedThumb.h:31
BOOL castsShadow
Alias of shouldCastShadow.
Definition SVSegmentedThumb.h:104