-
Notifications
You must be signed in to change notification settings - Fork 520
Expand file tree
/
Copy pathSCLSwitchView.h
More file actions
35 lines (25 loc) · 920 Bytes
/
Copy pathSCLSwitchView.h
File metadata and controls
35 lines (25 loc) · 920 Bytes
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
//
// SCLSwitchView.h
// SCLAlertView
//
// Created by André Felipe Santos on 27/01/16.
// Copyright (c) 2016-2025 AnyKey Entertainment. All rights reserved.
//
#import <UIKit/UIKit.h>
NS_ASSUME_NONNULL_BEGIN
/**
A simple switch view with an optional label, configurable via UIAppearance.
*/
@interface SCLSwitchView : UIView
/// Tint color for the switch (UIAppearance).
@property (strong, nonatomic, nullable) UIColor *tintColor UI_APPEARANCE_SELECTOR;
/// Label color (UIAppearance).
@property (strong, nonatomic, nullable) UIColor *labelColor UI_APPEARANCE_SELECTOR;
/// Label font (UIAppearance).
@property (strong, nonatomic, nullable) UIFont *labelFont UI_APPEARANCE_SELECTOR;
/// Label text (UIAppearance).
@property (strong, nonatomic, nullable) NSString *labelText UI_APPEARANCE_SELECTOR;
/// Selection state.
@property (nonatomic, getter=isSelected) BOOL selected;
@end
NS_ASSUME_NONNULL_END