Skip to content

Commit b487850

Browse files
authored
Merge pull request #487 from ConstructiveCoding/main
Added accessibility label to Reset button
2 parents be108cd + d1e1089 commit b487850

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Objective-C/TOCropViewController/Views/TOCropToolbar.m

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,10 @@ - (void)setup {
141141
_resetButton.enabled = NO;
142142
[_resetButton setImage:[TOCropToolbar resetImage] forState:UIControlStateNormal];
143143
[_resetButton addTarget:self action:@selector(buttonTapped:) forControlEvents:UIControlEventTouchUpInside];
144+
_resetButton.accessibilityLabel = NSLocalizedStringFromTableInBundle(@"Reset",
145+
@"TOCropViewControllerLocalizable",
146+
resourceBundle,
147+
nil);
144148
[self addSubview:_resetButton];
145149
}
146150

0 commit comments

Comments
 (0)