File tree 1 file changed +8
-2
lines changed
1 file changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -108,15 +108,21 @@ - (void)setParentPtrs:(NSSet *)parentPtrs {
108
108
}
109
109
110
110
+ (NSSet *)classNamesInWhiteList {
111
- static NSSet *whiteList;
111
+ static NSMutableSet *whiteList;
112
112
static dispatch_once_t onceToken;
113
113
dispatch_once (&onceToken, ^{
114
- whiteList = [NSSet setWithObjects:
114
+ whiteList = [NSMutableSet setWithObjects:
115
115
@" UIFieldEditor" , // UIAlertControllerTextField
116
116
@" UINavigationBar" ,
117
117
@" _UIAlertControllerActionView" ,
118
118
@" _UIVisualEffectBackdropView" ,
119
119
nil ];
120
+
121
+ // System's bug since iOS 10 and not fixed yet up to this ci.
122
+ NSString *systemVersion = [UIDevice currentDevice ].systemVersion ;
123
+ if ([systemVersion compare: @" 10.0" options: NSNumericSearch] != NSOrderedAscending) {
124
+ [whiteList addObject: @" UISwitch" ];
125
+ }
120
126
});
121
127
return whiteList;
122
128
}
You can’t perform that action at this time.
0 commit comments