diff --git a/Limelight/ViewControllers/SWRevealViewController.m b/Limelight/ViewControllers/SWRevealViewController.m index 0ef3488d..93ce6cae 100755 --- a/Limelight/ViewControllers/SWRevealViewController.m +++ b/Limelight/ViewControllers/SWRevealViewController.m @@ -1371,8 +1371,15 @@ const int FrontViewPositionNone = 0xff; // These are derived from the primary view controller if (@available(iOS 11.0, *)) { - [self setNeedsUpdateOfHomeIndicatorAutoHidden]; - [self setNeedsUpdateOfScreenEdgesDeferringSystemGestures]; + // iOS 11 betas (which are still installed in some places :\) crash with + // doesNotRecognizeSelector since this wasn't added until after the iPhone X + // announcement. + if ([self respondsToSelector: @selector(setNeedsUpdateOfHomeIndicatorAutoHidden)]) { + [self setNeedsUpdateOfHomeIndicatorAutoHidden]; + } + if ([self respondsToSelector: @selector(setNeedsUpdateOfScreenEdgesDeferringSystemGestures)]) { + [self setNeedsUpdateOfScreenEdgesDeferringSystemGestures]; + } } }