From 7ed5a9831f5a4b6a0812467f94f14e46d952aeca Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Thu, 29 Aug 2019 21:57:51 -0700 Subject: [PATCH] Fix settings slideout scrolling too far on iOS 13 --- Limelight/ViewControllers/SettingsViewController.m | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Limelight/ViewControllers/SettingsViewController.m b/Limelight/ViewControllers/SettingsViewController.m index 964c2b8..9d346dd 100644 --- a/Limelight/ViewControllers/SettingsViewController.m +++ b/Limelight/ViewControllers/SettingsViewController.m @@ -67,10 +67,12 @@ static const int bitrateTable[] = { // highest view Y value to set our scroll view's content // size. for (UIView* view in self.scrollView.subviews) { - // UIScrollViews have 2 default UIImageView children + // UIScrollViews have 2 default child views // which represent the horizontal and vertical scrolling - // indicators. Ignore these when computing content size. - if ([view isKindOfClass:[UIImageView class]]) { + // indicators. Ignore any views we don't recognize. + if (![view isKindOfClass:[UILabel class]] && + ![view isKindOfClass:[UISegmentedControl class]] && + ![view isKindOfClass:[UISlider class]]) { continue; }