Skip to content

Commit

Permalink
handling attributedstrings
Browse files Browse the repository at this point in the history
  • Loading branch information
RoyalPineapple committed Jul 9, 2024
1 parent 7268ba0 commit c9d359f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion Sources/KIF/Classes/KIFUIViewTestActor.m
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,12 @@ - (instancetype)usingCustomActionWithName:(NSString *)name
NSPredicate *predicate = [NSPredicate predicateWithBlock:^BOOL(id evaluatedObject, NSDictionary *bindings) {
NSArray *actions = [evaluatedObject accessibilityCustomActions];
for (UIAccessibilityCustomAction *action in actions) {
if ([action.name isEqualToString: name]) {
NSString *actionName = [action name];
if ([actionName isKindOfClass:[NSAttributedString class]]) {
actionName = [(NSAttributedString *)actionName string];
}

if ([actionName isEqualToString: name]) {
return true;
}
}
Expand Down

0 comments on commit c9d359f

Please sign in to comment.