Skip to content

Commit

Permalink
Added test to avoid referencing UIWebView under UIKit for Mac (#7679)
Browse files Browse the repository at this point in the history
`MDCBottomSheetPresentationController.m` contains a reference to UIWebView. This prevents compilation under UIKit for Mac where that class does not exist.

closes #7677
  • Loading branch information
aufflick authored and featherless committed Jun 26, 2019
1 parent b322b55 commit 4354bfc
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,10 @@

if ([viewController.view isKindOfClass:[UIScrollView class]]) {
scrollView = (UIScrollView *)viewController.view;
#if !TARGET_OS_UIKITFORMAC
} else if ([viewController.view isKindOfClass:[UIWebView class]]) {
scrollView = ((UIWebView *)viewController.view).scrollView;
#endif
} else if ([viewController isKindOfClass:[UICollectionViewController class]]) {
scrollView = ((UICollectionViewController *)viewController).collectionView;
}
Expand Down

0 comments on commit 4354bfc

Please sign in to comment.