Skip to content

Commit

Permalink
Added accessibility to the background label to handle label in a simp…
Browse files Browse the repository at this point in the history
…le way.
  • Loading branch information
devedbox committed Apr 6, 2017
1 parent a77d008 commit d732a25
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
9 changes: 9 additions & 0 deletions AXWebViewController/AXWebViewController/AXWebViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,4 +195,13 @@ typedef NS_ENUM(NSInteger, AXWebViewControllerNavigationType) {
/// @param completion completion block.
+ (void)clearWebCacheCompletion:(dispatch_block_t)completion;
@end

/**
Accessibility to background label.
*/
@interface AXWebViewController (BackgroundLabel)
/// Description label of web content's info.
///
@property(readonly, nonatomic) UILabel *descriptionLabel;
@end
NS_ASSUME_NONNULL_END
4 changes: 4 additions & 0 deletions AXWebViewController/AXWebViewController/AXWebViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -548,6 +548,10 @@ - (UILabel *)backgroundLabel {
[_backgroundLabel setContentCompressionResistancePriority:UILayoutPriorityRequired forAxis:UILayoutConstraintAxisVertical];
return _backgroundLabel;
}

- (UILabel *)descriptionLabel {
return self.backgroundLabel;
}
#if __IPHONE_OS_VERSION_MIN_REQUIRED < __IPHONE_8_0
-(UIView*)swipingBackgoundView{
if (!_swipingBackgoundView) {
Expand Down

0 comments on commit d732a25

Please sign in to comment.