Skip to content

Commit d7423fd

Browse files
author
Ian Gordon
committed
Switch from IBInspectable to UI_APPEARANCE_SELECTOR
Summary: We cannot have a property that is annotated with both IBInspectable and UI_APPEARANCE_SELECTOR. Until we can, we choose UI_APPEARANCE_SELECTOR so we can utilize UIAppearance for theming. Reviewers: randallli, #material_components_ios_owners Reviewed By: randallli, #material_components_ios_owners Projects: #material_components_ios Differential Revision: http://codereview.cc/D118
1 parent 23bf02d commit d7423fd

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

components/Switch/src/MDCSwitch.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -32,19 +32,19 @@ NS_CLASS_AVAILABLE_IOS(7_0)
3232

3333
// TODO(iangordon): Unify our Color handling over all of our components
3434
/** The color of the thumb and track in the on position. */
35-
@property(null_resettable, nonatomic, strong) IBInspectable UIColor *onTintColor;
35+
@property(null_resettable, nonatomic, strong) UIColor *onTintColor UI_APPEARANCE_SELECTOR;
3636

3737
/** The color of the thumb in the off position. */
38-
@property(null_resettable, nonatomic, strong) IBInspectable UIColor *offThumbColor;
38+
@property(null_resettable, nonatomic, strong) UIColor *offThumbColor UI_APPEARANCE_SELECTOR;
3939

4040
/** The color of the track in the off position. */
41-
@property(null_resettable, nonatomic, strong) IBInspectable UIColor *offTrackColor;
41+
@property(null_resettable, nonatomic, strong) UIColor *offTrackColor UI_APPEARANCE_SELECTOR;
4242

4343
/** The color of the thumb when disabled. */
44-
@property(null_resettable, nonatomic, strong) IBInspectable UIColor *disabledThumbColor;
44+
@property(null_resettable, nonatomic, strong) UIColor *disabledThumbColor UI_APPEARANCE_SELECTOR;
4545

4646
/** The color of the track when disabled. */
47-
@property(null_resettable, nonatomic, strong) IBInspectable UIColor *disabledTrackColor;
47+
@property(null_resettable, nonatomic, strong) UIColor *disabledTrackColor UI_APPEARANCE_SELECTOR;
4848

4949
/**
5050
* Boolean value that determines the off/on state of the switch.

0 commit comments

Comments
 (0)